depot/third_party/nixpkgs/pkgs/development/tools/rust/maturin/default.nix
Default email fcc03dbfc5 Project import generated by Copybara.
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
2021-02-13 15:23:35 +01:00

37 lines
833 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, dbus
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "maturin";
version = "0.9.0";
src = fetchFromGitHub {
owner = "PyO3";
repo = "maturin";
rev = "v${version}";
hash = "sha256-X5/1zEVhhdTuyXcUwC3jVv9Gblmv8LT+ftsVo8BnnZs=";
};
cargoHash = "sha256-PBmuPIpCwC7fr/MKFaeSd/0avoEATlxoeMHisjouAeI=";
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optional stdenv.isLinux dbus
++ lib.optional stdenv.isDarwin Security;
# 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 ];
};
}