at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 distro, 5 fetchPypi, 6 fixtures, 7 libredirect, 8 packaging, 9 parsley, 10 pbr, 11 pytestCheckHook, 12 testtools, 13}: 14 15buildPythonPackage rec { 16 pname = "bindep"; 17 version = "2.13.0"; 18 pyproject = true; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-33VkdT5YMDO7ETM4FQ13JUAUW00YmkgB7FaiW17eUFA="; 23 }; 24 25 env.PBR_VERSION = version; 26 27 build-system = [ 28 pbr 29 ]; 30 31 dependencies = [ 32 parsley 33 pbr 34 packaging 35 distro 36 ]; 37 38 nativeCheckInputs = [ 39 fixtures 40 libredirect.hook 41 pytestCheckHook 42 testtools 43 ]; 44 45 preCheck = '' 46 echo "ID=nixos 47 " > os-release 48 export NIX_REDIRECTS=/etc/os-release=$(realpath os-release) 49 export PATH=$PATH:$out/bin 50 ''; 51 52 pytestFlags = [ "-s" ]; 53 54 pythonImportsCheck = [ "bindep" ]; 55 56 meta = with lib; { 57 description = "Bindep is a tool for checking the presence of binary packages needed to use an application / library"; 58 homepage = "https://opendev.org/opendev/bindep"; 59 license = licenses.asl20; 60 mainProgram = "bindep"; 61 teams = [ teams.openstack ]; 62 }; 63}