nixpkgs/pkgs/development/python-modules/vulture/default.nix

38 lines
678 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, coverage
, fetchPypi
, isPy27
, pytest-cov
, pytestCheckHook
, toml
}:
2020-08-02 04:26:38 +01:00
buildPythonPackage rec {
pname = "vulture";
2021-01-18 09:42:38 +00:00
version = "2.3";
disabled = isPy27;
2020-08-02 04:26:38 +01:00
src = fetchPypi {
inherit pname version;
2021-01-18 09:42:38 +00:00
sha256 = "0ryrmsm72z3fzaanyblz49q40h9d3bbl4pspn2lvkkp9rcmsdm83";
2020-08-02 04:26:38 +01:00
};
propagatedBuildInputs = [ toml ];
checkInputs = [
coverage
pytest-cov
pytestCheckHook
];
pythonImportsCheck = [ "vulture" ];
2020-08-02 04:26:38 +01: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 ];
};
}