83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
38 lines
919 B
Nix
38 lines
919 B
Nix
{ callPackage
|
|
, lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, semantic-version
|
|
, setuptools
|
|
, setuptools-scm
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "setuptools-rust";
|
|
version = "1.5.2";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-2NrMsU3A6uG2tus+zveWdb03tAZTafecNTk91cVWUsc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ semantic-version setuptools typing-extensions ];
|
|
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "setuptools_rust" ];
|
|
|
|
passthru.tests.pyo3 = callPackage ./pyo3-test { };
|
|
|
|
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; [ SuperSandro2000 ];
|
|
};
|
|
}
|