2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, dbus, gmp, openssl, pkgconfig
|
|
|
|
, darwin }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (darwin.apple_sdk.frameworks) Security;
|
|
|
|
in rustPlatform.buildRustPackage rec {
|
|
|
|
name = "maturin-${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.8.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyO3";
|
|
|
|
repo = "maturin";
|
|
|
|
rev = "v${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "08l5r7d75id6qzf8xhkjv4hkdr64cq4dbcmdjywmvf9szjbnr65z";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
cargoSha256 = "1n0sxkhcdg2rbzqd7826pa7sxlnn0c2sc8l6lc98xw21vvqisc8n";
|
2020-04-24 23:36:52 +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/maturin";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.danieldk ];
|
|
|
|
};
|
|
|
|
}
|