mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
54 lines
970 B
Nix
54 lines
970 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, chardet
|
|
, attrs
|
|
, commoncode
|
|
, pytestCheckHook
|
|
, setuptools-scm
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "debian-inspector";
|
|
version = "31.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "debian_inspector";
|
|
inherit version;
|
|
hash = "sha256-RglPlTRksmm7CYVere7jySy2tIegv6JuulN7Usw9a0c=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
dontConfigure = true;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
chardet
|
|
attrs
|
|
commoncode
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"debian_inspector"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Utilities to parse Debian package, copyright and control files";
|
|
homepage = "https://github.com/nexB/debian-inspector";
|
|
license = with licenses; [ asl20 bsd3 mit ];
|
|
maintainers = teams.determinatesystems.members;
|
|
};
|
|
}
|