Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 callPackage, 5 distutils, 6 fetchPypi, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "pbr"; 12 version = "7.0.1"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-PsvLEdK4VRWI7IFrN1ax60OUGGw7aJsX4EhQ38IPflc="; 18 }; 19 20 build-system = [ setuptools ]; 21 22 dependencies = [ 23 distutils # for distutils.command in pbr/packaging.py 24 setuptools # for pkg_resources 25 ]; 26 27 # check in passthru.tests.pytest to escape infinite recursion with fixtures 28 doCheck = false; 29 30 passthru.tests = { 31 tests = callPackage ./tests.nix { }; 32 }; 33 34 pythonImportsCheck = [ "pbr" ]; 35 36 meta = with lib; { 37 description = "Python Build Reasonableness"; 38 mainProgram = "pbr"; 39 homepage = "https://github.com/openstack/pbr"; 40 license = licenses.asl20; 41 teams = [ teams.openstack ]; 42 }; 43}