2021-01-18 10:56:20 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, coverage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
|
|
|
, toml
|
|
|
|
}:
|
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
|
|
|
};
|
|
|
|
|
2021-01-18 10:56:20 +01:00
|
|
|
propagatedBuildInputs = [ toml ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
coverage
|
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "vulture" ];
|
2020-08-02 05:26:38 +02:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|