2020-10-16 10:44:23 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-05 19:47:09 +00:00
|
|
|
, isPy27
|
2020-10-16 10:44:23 +01:00
|
|
|
, semantic-version
|
|
|
|
, setuptools
|
|
|
|
, setuptools_scm
|
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "setuptools-rust";
|
2020-11-12 10:45:33 +00:00
|
|
|
version = "0.11.5";
|
2020-11-05 19:47:09 +00:00
|
|
|
|
|
|
|
disabled = isPy27;
|
2020-10-16 10:44:23 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-12 10:45:33 +00:00
|
|
|
sha256 = "04ea21f1bd029046fb87d098be4d7dc74663a58dd1f9fc6edcf8f3e4123ec4a8";
|
2020-10-16 10:44:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ semantic-version setuptools toml ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Setuptools plugin for Rust support";
|
|
|
|
homepage = "https://github.com/PyO3/setuptools-rust";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
};
|
|
|
|
}
|