nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 callPackage,
5 distutils,
6 fetchPypi,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pbr";
12 version = "7.0.3";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-tGAE7DClMkZyaD7ISK7Z6PxQCw0mHUCjIpwtK7/O3Ck=";
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 = {
37 description = "Python Build Reasonableness";
38 mainProgram = "pbr";
39 homepage = "https://github.com/openstack/pbr";
40 license = lib.licenses.asl20;
41 teams = [ lib.teams.openstack ];
42 };
43}