depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools-rust/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

36 lines
831 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, semantic-version
, setuptools
, setuptools-scm
, toml
}:
buildPythonPackage rec {
pname = "setuptools-rust";
version = "0.11.6";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "a5b5954909cbc5d66b914ee6763f81fa2610916041c7266105a469f504a7c4ca";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ semantic-version setuptools toml ];
# no tests
doCheck = false;
pythonImportsCheck = [ "setuptools_rust" ];
meta = with lib; {
description = "Setuptools plugin for Rust support";
homepage = "https://github.com/PyO3/setuptools-rust";
changelog = "https://github.com/PyO3/setuptools-rust/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ danieldk ];
};
}