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