062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
36 lines
985 B
Nix
36 lines
985 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, dbus, gmp, openssl, pkgconfig
|
|
, darwin }:
|
|
|
|
let
|
|
inherit (darwin.apple_sdk.frameworks) Security;
|
|
in rustPlatform.buildRustPackage rec {
|
|
name = "pyo3-pack-${version}";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyO3";
|
|
repo = "pyo3-pack";
|
|
rev = "v${version}";
|
|
sha256 = "0577v8nqjbb7l7fqvac706bg9zrcp8fbh9ca1mkj44db12v02kgb";
|
|
};
|
|
|
|
cargoSha256 = "1prwgkgvg11cbpx086irrafg59mfvnykadagcp3qgyry6d82blsv";
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gmp openssl ]
|
|
++ stdenv.lib.optional stdenv.isDarwin Security
|
|
++ stdenv.lib.optional stdenv.isLinux dbus;
|
|
|
|
# Requires network access, fails in sandbox.
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Build and publish crates with pyo3 bindings as python packages";
|
|
homepage = https://github.com/PyO3/pyo3-pack;
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.danieldk ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|