mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 16:36:38 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
}
|