889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
44 lines
837 B
Nix
44 lines
837 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, toml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vulture";
|
|
version = "2.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gZQ5KUp2tOC44Ixw11VlqM49wfbgNVjtEjpfK7c3wOo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
toml
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|