forked from mirrors/nixpkgs
72f711eada
Change: - maturin build --interpreter/maturin publish --interpreter builds only a source distribution.
36 lines
979 B
Nix
36 lines
979 B
Nix
{ stdenv, fetchFromGitHub, rustPlatform, dbus, gmp, openssl, pkgconfig
|
|
, darwin }:
|
|
|
|
let
|
|
inherit (darwin.apple_sdk.frameworks) Security;
|
|
in rustPlatform.buildRustPackage rec {
|
|
name = "maturin-${version}";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyO3";
|
|
repo = "maturin";
|
|
rev = "v${version}";
|
|
sha256 = "0srsb305gld6zmz7qm5zk4gawqqlywdpray04z8xcij146mccci2";
|
|
};
|
|
|
|
cargoSha256 = "0bscwbrzjaps4yqcrqhan56kdmh0n014w4ldsbv3sbhpw5izz335";
|
|
|
|
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 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|