Skip to content

Commit

Permalink
pyo3-pack: init at 0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldk committed Oct 25, 2018
1 parent 9a2fd03 commit c34a062
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/development/tools/rust/pyo3-pack/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ 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.3.8";

src = fetchFromGitHub {
owner = "PyO3";
repo = "pyo3-pack";
rev = "v${version}";
sha256 = "14343209w7wphkqh7pnw08pah09spjbwhk6l548g9ivra057gwaz";
};

cargoSha256 = "0n7z9p3v92ijqc2ix60wi74as5rql61k5qbqi8b1b02b71xmsp7j";

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;
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7359,6 +7359,7 @@ with pkgs;
cargo-asm = callPackage ../development/tools/rust/cargo-asm { };
cargo-fuzz = callPackage ../development/tools/rust/cargo-fuzz { };

pyo3-pack = callPackage ../development/tools/rust/pyo3-pack { };
rainicorn = callPackage ../development/tools/rust/rainicorn { };
rustfmt = callPackage ../development/tools/rust/rustfmt { };
rustracer = callPackage ../development/tools/rust/racer { };
Expand Down

0 comments on commit c34a062

Please sign in to comment.