2020-08-26 09:15:03 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy27, coverage, pytest, pytestcov }:
|
2020-08-02 05:26:38 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vulture";
|
2020-10-04 02:53:53 +02:00
|
|
|
version = "2.1";
|
2020-08-26 09:15:03 +02:00
|
|
|
disabled = isPy27;
|
2020-08-02 05:26:38 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-04 02:53:53 +02:00
|
|
|
sha256 = "933bf7f3848e9e39ecab6a12faa59d5185471c887534abac13baea6fe8138cc2";
|
2020-08-02 05:26:38 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|