2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-11-03 02:18:15 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-06 00:33:48 +00:00
|
|
|
, isPy27
|
2020-11-03 02:18:15 +00:00
|
|
|
, semantic-version
|
|
|
|
, setuptools
|
2021-03-09 03:18:52 +00:00
|
|
|
, setuptools-scm
|
2020-11-03 02:18:15 +00:00
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "setuptools-rust";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "0.11.6";
|
2020-11-06 00:33:48 +00:00
|
|
|
disabled = isPy27;
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "a5b5954909cbc5d66b914ee6763f81fa2610916041c7266105a469f504a7c4ca";
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ semantic-version setuptools toml ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "setuptools_rust" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description = "Setuptools plugin for Rust support";
|
|
|
|
homepage = "https://github.com/PyO3/setuptools-rust";
|
2020-12-25 13:55:36 +00:00
|
|
|
changelog = "https://github.com/PyO3/setuptools-rust/releases/tag/v${version}";
|
2020-11-03 02:18:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
};
|
|
|
|
}
|