3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/rust/maturin/default.nix

38 lines
833 B
Nix
Raw Normal View History

2021-02-12 09:47:30 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, dbus
, Security
}:
2018-10-30 15:36:21 +00:00
rustPlatform.buildRustPackage rec {
2021-02-11 14:04:30 +00:00
pname = "maturin";
2021-01-20 06:31:48 +00:00
version = "0.9.0";
2018-10-30 15:36:21 +00:00
src = fetchFromGitHub {
owner = "PyO3";
repo = "maturin";
2018-10-30 15:36:21 +00:00
rev = "v${version}";
2021-02-12 09:47:30 +00:00
hash = "sha256-X5/1zEVhhdTuyXcUwC3jVv9Gblmv8LT+ftsVo8BnnZs=";
2018-10-30 15:36:21 +00:00
};
2021-02-12 09:47:30 +00:00
cargoHash = "sha256-PBmuPIpCwC7fr/MKFaeSd/0avoEATlxoeMHisjouAeI=";
2018-10-30 15:36:21 +00:00
nativeBuildInputs = [ pkg-config ];
2018-10-30 15:36:21 +00:00
buildInputs = lib.optional stdenv.isLinux dbus
++ lib.optional stdenv.isDarwin Security;
2018-10-30 15:36:21 +00:00
# Requires network access, fails in sandbox.
doCheck = false;
meta = with lib; {
2018-10-30 15:36:21 +00:00
description = "Build and publish crates with pyo3 bindings as python packages";
homepage = "https://github.com/PyO3/maturin";
2018-10-30 15:36:21 +00:00
license = licenses.mit;
maintainers = [ maintainers.danieldk ];
};
}