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