2021-02-18 08:23:03 +00:00
|
|
|
{ callPackage
|
|
|
|
, lib
|
2020-10-16 10:44:23 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-03-19 19:25:24 +00:00
|
|
|
, pythonOlder
|
2020-10-16 10:44:23 +01:00
|
|
|
, semantic-version
|
|
|
|
, setuptools
|
2021-03-03 12:50:31 +00:00
|
|
|
, setuptools-scm
|
2020-10-16 10:44:23 +01:00
|
|
|
, toml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "setuptools-rust";
|
2021-03-19 19:25:24 +00:00
|
|
|
version = "0.12.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-10-16 10:44:23 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-19 19:25:24 +00:00
|
|
|
sha256 = "647009e924f0ae439c7f3e0141a184a69ad247ecb9044c511dabde232d3d570e";
|
2020-10-16 10:44:23 +01:00
|
|
|
};
|
|
|
|
|
2021-03-03 12:50:31 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-10-16 10:44:23 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ semantic-version setuptools toml ];
|
|
|
|
|
2021-03-03 12:50:31 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "setuptools_rust" ];
|
|
|
|
|
2021-02-18 08:23:03 +00:00
|
|
|
passthru.tests.pyo3 = callPackage ./pyo3-test {};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-16 10:44:23 +01:00
|
|
|
description = "Setuptools plugin for Rust support";
|
|
|
|
homepage = "https://github.com/PyO3/setuptools-rust";
|
2020-12-14 19:10:13 +00:00
|
|
|
changelog = "https://github.com/PyO3/setuptools-rust/releases/tag/v${version}";
|
2020-10-16 10:44:23 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
};
|
|
|
|
}
|