2018-10-30 15:36:21 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, dbus, gmp, openssl, pkgconfig
|
|
|
|
, darwin }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (darwin.apple_sdk.frameworks) Security;
|
|
|
|
in rustPlatform.buildRustPackage rec {
|
|
|
|
name = "pyo3-pack-${version}";
|
2019-06-17 13:16:17 +01:00
|
|
|
version = "0.6.1";
|
2018-10-30 15:36:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyO3";
|
|
|
|
repo = "pyo3-pack";
|
|
|
|
rev = "v${version}";
|
2019-06-17 13:16:17 +01:00
|
|
|
sha256 = "0zk0jhr7lnl9z6c8pbk7si3wa8b1kqzj3wrslc1n5fjla7xx8fzn";
|
2018-10-30 15:36:21 +00:00
|
|
|
};
|
|
|
|
|
2019-06-17 13:16:17 +01:00
|
|
|
cargoSha256 = "13gycipxc17baxg8nvjzkw96i1pxgncx7qjcrm9aab7p9vi2vrih";
|
2018-10-30 15:36:21 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|