Packages depending on setuptools-scm need the setuptools module at build time. Add setuptools to the propagatedBuildInputs so this is guaranteed. This fixes cross compile of the dependent packages.
44 lines
852 B
Nix
44 lines
852 B
Nix
{ buildPythonPackage
|
|
, callPackage
|
|
, fetchPypi
|
|
, packaging
|
|
, tomli
|
|
, setuptools
|
|
, lib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "setuptools-scm";
|
|
version = "6.4.2";
|
|
|
|
src = fetchPypi {
|
|
pname = "setuptools_scm";
|
|
inherit version;
|
|
sha256 = "sha256-aDOsZcbtlxGk1dImb4Akz6B8UzoOVfTBL27/KApanjA=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
packaging
|
|
tomli
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"setuptools_scm"
|
|
];
|
|
|
|
# check in passhtru.tests.pytest to escape infinite recursion on pytest
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
pytest = callPackage ./tests.nix { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/pypa/setuptools_scm/";
|
|
description = "Handles managing your python package versions in scm metadata";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|