depot/third_party/nixpkgs/pkgs/development/python-modules/setuptools-scm/default.nix
Default email 8d28093ffb Project import generated by Copybara.
GitOrigin-RevId: 31ffc50c571e6683e9ecc9dbcbd4a8e9914b4497
2021-09-26 14:46:18 +02:00

41 lines
824 B
Nix

{ buildPythonPackage
, callPackage
, fetchPypi
, packaging
, tomli
, lib
}:
buildPythonPackage rec {
pname = "setuptools-scm";
version = "6.3.1";
src = fetchPypi {
pname = "setuptools_scm";
inherit version;
sha256 = "sha256-D2omORKxN5jAKLmicdka873g5CeECRx5fezMOtOn9ZY=";
};
propagatedBuildInputs = [
packaging
tomli
];
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 ];
};
}