nixpkgs-suyu/pkgs/development/python-modules/pbr/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

35 lines
785 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, callPackage
}:
buildPythonPackage rec {
pname = "pbr";
version = "5.11.1";
src = fetchPypi {
inherit pname version;
hash = "sha256-rvxRZ1sLUz1Wu1/RyMbAUi/jGJZnmILhxMY9XkoPzLM=";
};
# 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;
};
}