83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
46 lines
859 B
Nix
46 lines
859 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pint
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vulture";
|
|
version = "2.7";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Z/uAoBTtn9tZndRLuWy1QxEDKhBBBvwucG73ptrYgDI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|