diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pbr/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pbr/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pbr/default.nix b/nixpkgs/pkgs/development/python-modules/pbr/default.nix new file mode 100644 index 000000000000..7fb0574f75a0 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pbr/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools +, callPackage +}: + +buildPythonPackage rec { + pname = "pbr"; + version = "5.9.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-6Nyi9LQ1YO3vWIE5afUqVs7wIxRsu4kxYm24DmwcQwg="; + }; + + # importlib-metadata could be added here if it wouldn't cause an infinite recursion + propagatedBuildInputs = [ setuptools ]; + + # check in passthru.tests.pytest to escape infinite recursion with fixtures + doCheck = false; + + passthru.tests = { + tests = callPackage ./tests.nix { }; + }; + + pythonImportsCheck = [ "pbr" ]; + + meta = with lib; { + description = "Python Build Reasonableness"; + homepage = "https://github.com/openstack/pbr"; + license = licenses.asl20; + maintainers = teams.openstack.members; + }; +} |