2021-09-26 12:46:18 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, callPackage
|
|
|
|
, fetchPypi
|
|
|
|
, packaging
|
|
|
|
, tomli
|
|
|
|
, lib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "setuptools-scm";
|
2021-09-26 12:46:18 +00:00
|
|
|
version = "6.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "setuptools_scm";
|
|
|
|
inherit version;
|
2021-09-26 12:46:18 +00:00
|
|
|
sha256 = "sha256-D2omORKxN5jAKLmicdka873g5CeECRx5fezMOtOn9ZY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
tomli
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"setuptools_scm"
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
# check in passhtru.tests.pytest to escape infinite recursion on pytest
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
2021-09-26 12:46:18 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
pytest = callPackage ./tests.nix { };
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-04-05 15:23:46 +00:00
|
|
|
homepage = "https://github.com/pypa/setuptools_scm/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Handles managing your python package versions in scm metadata";
|
|
|
|
license = licenses.mit;
|
2021-04-05 15:23:46 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|