|
|
|
@ -1,32 +1,39 @@ |
|
|
|
|
{ lib |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, coverage |
|
|
|
|
, fetchPypi |
|
|
|
|
, isPy27 |
|
|
|
|
, pytest-cov |
|
|
|
|
, pythonOlder |
|
|
|
|
, pytestCheckHook |
|
|
|
|
, toml |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "vulture"; |
|
|
|
|
version = "2.3"; |
|
|
|
|
disabled = isPy27; |
|
|
|
|
version = "2.4"; |
|
|
|
|
format = "setuptools"; |
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6"; |
|
|
|
|
|
|
|
|
|
src = fetchPypi { |
|
|
|
|
inherit pname version; |
|
|
|
|
sha256 = "0ryrmsm72z3fzaanyblz49q40h9d3bbl4pspn2lvkkp9rcmsdm83"; |
|
|
|
|
hash = "sha256-gZQ5KUp2tOC44Ixw11VlqM49wfbgNVjtEjpfK7c3wOo="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ toml ]; |
|
|
|
|
postPatch = '' |
|
|
|
|
substituteInPlace setup.cfg \ |
|
|
|
|
--replace " --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append" "" |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
toml |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
|
coverage |
|
|
|
|
pytest-cov |
|
|
|
|
pytestCheckHook |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "vulture" ]; |
|
|
|
|
pythonImportsCheck = [ |
|
|
|
|
"vulture" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "Finds unused code in Python programs"; |
|
|
|
|