about summary refs log tree commit diff
path: root/pkgs/development/python-modules/bindep/default.nix
blob: 4a27f56a3bcd2f7bee98da36e8387c7ce40532fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, python3Packages
, fetchPypi
}:
python3Packages.buildPythonPackage rec {
  pname = "bindep";
  version = "2.11.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-rLLyWbzh/RUIhzR5YJu95bmq5Qg3hHamjWtqGQAufi8=";
  };

  buildInputs = with python3Packages; [
    distro
    pbr
    setuptools
  ];

  propagatedBuildInputs = with python3Packages; [
    parsley
    pbr
    packaging
    distro
  ];

  patchPhase = ''
    # Setting the pbr version will skip any version checking logic
    # This is required because pbr thinks it gets it's own version from git tags
    # See https://docs.openstack.org/pbr/latest/user/packagers.html
    export PBR_VERSION=5.11.1
  '';

  meta = with lib; {
    description = "Bindep is a tool for checking the presence of binary packages needed to use an application / library";
    homepage = "https://docs.opendev.org/opendev/bindep/latest/";
    license = licenses.asl20;
    maintainers = with maintainers; [ melkor333 ];
  };
}