2021-03-19 17:17:44 +00:00
|
|
|
{ callPackage
|
|
|
|
, lib
|
2020-11-03 02:18:15 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-04-12 18:23:04 +00:00
|
|
|
, pythonOlder
|
2020-11-03 02:18:15 +00:00
|
|
|
, semantic-version
|
|
|
|
, setuptools
|
2021-03-09 03:18:52 +00:00
|
|
|
, setuptools-scm
|
2022-02-10 20:34:41 +00:00
|
|
|
, typing-extensions
|
2020-11-03 02:18:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "setuptools-rust";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "1.5.1";
|
2021-04-12 18:23:04 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-14 18:05:37 +00:00
|
|
|
sha256 = "sha256-DgXkVmRdWUKcsQITcK7ec8B2DpNgu/2q77W87VMOudc=";
|
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
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [ semantic-version setuptools typing-extensions ];
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "setuptools_rust" ];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
passthru.tests.pyo3 = callPackage ./pyo3-test { };
|
2021-03-19 17:17:44 +00:00
|
|
|
|
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;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
|
|
|
}
|