1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools
5, callPackage
6}:
7
8buildPythonPackage rec {
9 pname = "pbr";
10 version = "5.11.1";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-rvxRZ1sLUz1Wu1/RyMbAUi/jGJZnmILhxMY9XkoPzLM=";
15 };
16
17 # importlib-metadata could be added here if it wouldn't cause an infinite recursion
18 propagatedBuildInputs = [ setuptools ];
19
20 # check in passthru.tests.pytest to escape infinite recursion with fixtures
21 doCheck = false;
22
23 passthru.tests = {
24 tests = callPackage ./tests.nix { };
25 };
26
27 pythonImportsCheck = [ "pbr" ];
28
29 meta = with lib; {
30 description = "Python Build Reasonableness";
31 homepage = "https://github.com/openstack/pbr";
32 license = licenses.asl20;
33 maintainers = teams.openstack.members;
34 };
35}