2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, coverage, pytest, pytestcov }:
|
2020-08-02 04:26:38 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vulture";
|
2020-10-04 01:53:53 +01:00
|
|
|
version = "2.1";
|
2020-08-26 08:15:03 +01:00
|
|
|
disabled = isPy27;
|
2020-08-02 04:26:38 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-04 01:53:53 +01:00
|
|
|
sha256 = "933bf7f3848e9e39ecab6a12faa59d5185471c887534abac13baea6fe8138cc2";
|
2020-08-02 04:26:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ coverage pytest pytestcov ];
|
|
|
|
checkPhase = "pytest";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-02 04:26:38 +01:00
|
|
|
description = "Finds unused code in Python programs";
|
|
|
|
homepage = "https://github.com/jendrikseipp/vulture";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mcwitt ];
|
|
|
|
};
|
|
|
|
}
|