2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, setuptools
|
|
|
|
, callPackage
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pbr";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "5.11.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-rvxRZ1sLUz1Wu1/RyMbAUi/jGJZnmILhxMY9XkoPzLM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
# importlib-metadata could be added here if it wouldn't cause an infinite recursion
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
|
|
|
|
# check in passthru.tests.pytest to escape infinite recursion with fixtures
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
passthru.tests = {
|
|
|
|
tests = callPackage ./tests.nix { };
|
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pbr" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python Build Reasonableness";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/openstack/pbr";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|