1{
2 lib,
3 python3Packages,
4 fetchPypi,
5}:
6python3Packages.buildPythonPackage rec {
7 pname = "bindep";
8 version = "2.11.0";
9 format = "pyproject";
10
11 src = fetchPypi {
12 inherit pname version;
13 hash = "sha256-rLLyWbzh/RUIhzR5YJu95bmq5Qg3hHamjWtqGQAufi8=";
14 };
15
16 buildInputs = with python3Packages; [
17 distro
18 pbr
19 setuptools
20 ];
21
22 propagatedBuildInputs = with python3Packages; [
23 parsley
24 pbr
25 packaging
26 distro
27 ];
28
29 patchPhase = ''
30 # Setting the pbr version will skip any version checking logic
31 # This is required because pbr thinks it gets it's own version from git tags
32 # See https://docs.openstack.org/pbr/latest/user/packagers.html
33 export PBR_VERSION=5.11.1
34 '';
35
36 meta = with lib; {
37 description = "Bindep is a tool for checking the presence of binary packages needed to use an application / library";
38 homepage = "https://docs.opendev.org/opendev/bindep/latest/";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ melkor333 ];
41 };
42}