ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
34 lines
934 B
Nix
34 lines
934 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, dbus, gmp, openssl, pkg-config
|
|
, darwin }:
|
|
|
|
let
|
|
inherit (darwin.apple_sdk.frameworks) Security;
|
|
in rustPlatform.buildRustPackage rec {
|
|
name = "maturin-${version}";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyO3";
|
|
repo = "maturin";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-X5/1zEVhhdTuyXcUwC3jVv9Gblmv8LT+ftsVo8BnnZs=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-PBmuPIpCwC7fr/MKFaeSd/0avoEATlxoeMHisjouAeI=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ gmp openssl ]
|
|
++ lib.optional stdenv.isDarwin Security
|
|
++ lib.optional stdenv.isLinux dbus;
|
|
|
|
# Requires network access, fails in sandbox.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Build and publish crates with pyo3 bindings as python packages";
|
|
homepage = "https://github.com/PyO3/maturin";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.danieldk ];
|
|
};
|
|
}
|