mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00: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.
47 lines
859 B
Nix
47 lines
859 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pint
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vulture";
|
|
version = "2.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-JRX6hIGBAB3Ipzq6agGhoXQG9dNy8k7H9xkYZvn0mX4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
toml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pint
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"vulture"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Finds unused code in Python programs";
|
|
homepage = "https://github.com/jendrikseipp/vulture";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mcwitt ];
|
|
};
|
|
}
|