blob: 8b081e6decd016d75a68796c0773e1319239e650 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
diff-cover,
graphviz,
hatchling,
hatch-vcs,
packaging,
pytest-mock,
pytestCheckHook,
pip,
virtualenv,
}:
buildPythonPackage rec {
pname = "pipdeptree";
version = "2.28.0";
pyproject = true;
src = fetchFromGitHub {
owner = "tox-dev";
repo = "pipdeptree";
tag = version;
hash = "sha256-PYlNMAomqN9T60b8bRqb8mnLjFRn3JnI79Tynncxje8=";
};
postPatch = ''
# only set to ensure py3.13 compat
# https://github.com/tox-dev/pipdeptree/pull/406
substituteInPlace pyproject.toml \
--replace-fail '"pip>=24.2"' '"pip"'
'';
build-system = [
hatchling
hatch-vcs
];
dependencies = [
pip
packaging
];
optional-dependencies = {
graphviz = [ graphviz ];
};
nativeCheckInputs = [
diff-cover
pytest-mock
pytestCheckHook
virtualenv
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "pipdeptree" ];
disabledTests = [
# Don't run console tests
"test_console"
];
meta = {
description = "Command line utility to show dependency tree of packages";
homepage = "https://github.com/tox-dev/pipdeptree";
changelog = "https://github.com/tox-dev/pipdeptree/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
charlesbaynham
mdaniels5757
];
mainProgram = "pipdeptree";
};
}
|