blob: c165d693515780a52377f92841b809c41c20d6a1 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
buildPythonPackage,
distro,
fetchPypi,
fixtures,
libredirect,
packaging,
parsley,
pbr,
pytestCheckHook,
testtools,
}:
buildPythonPackage rec {
pname = "bindep";
version = "2.13.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-33VkdT5YMDO7ETM4FQ13JUAUW00YmkgB7FaiW17eUFA=";
};
env.PBR_VERSION = version;
build-system = [
pbr
];
dependencies = [
parsley
pbr
packaging
distro
];
nativeCheckInputs = [
fixtures
libredirect.hook
pytestCheckHook
testtools
];
preCheck = ''
echo "ID=nixos
" > os-release
export NIX_REDIRECTS=/etc/os-release=$(realpath os-release)
export PATH=$PATH:$out/bin
'';
pytestFlags = [ "-s" ];
pythonImportsCheck = [ "bindep" ];
meta = {
description = "Bindep is a tool for checking the presence of binary packages needed to use an application / library";
homepage = "https://opendev.org/opendev/bindep";
license = lib.licenses.asl20;
mainProgram = "bindep";
teams = [ lib.teams.openstack ];
};
}
|