2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27, coverage, pytest, pytestcov }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vulture";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2.0";
|
|
|
|
disabled = isPy27;
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "ab0dce458ab746212cc02ac10cf31912c43bbfdcccb49025745b00850beab086";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ coverage pytest pytestcov ];
|
|
|
|
checkPhase = "pytest";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Finds unused code in Python programs";
|
|
|
|
homepage = "https://github.com/jendrikseipp/vulture";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mcwitt ];
|
|
|
|
};
|
|
|
|
}
|