blob: c03c83595a5911ed70976701a7be6e62d7ad7c71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchPypi,
pint,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
toml,
tomli,
}:
buildPythonPackage rec {
pname = "vulture";
version = "2.14";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-y4J3kCoRON7qt5bsW+9wdqbgJIyjYHo/Pe4LbZ6bhBU=";
};
build-system = [ setuptools ];
dependencies = lib.optionals (pythonOlder "3.11") [ tomli ];
nativeCheckInputs = [
pint
pytest-cov-stub
pytestCheckHook
toml
];
disabledTestPaths = [
# missing pytype package/executable
"tests/test_pytype.py"
];
pythonImportsCheck = [ "vulture" ];
meta = {
description = "Finds unused code in Python programs";
homepage = "https://github.com/jendrikseipp/vulture";
changelog = "https://github.com/jendrikseipp/vulture/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mcwitt ];
mainProgram = "vulture";
};
}
|