blob: f4cc9687de19d889953f58797f73b45b43936c6d (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
graphviz,
stdlib-list,
pytestCheckHook,
pyyaml,
setuptools,
toml,
}:
buildPythonPackage (finalAttrs: {
pname = "pydeps";
version = "3.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "thebjorn";
repo = "pydeps";
tag = "v${finalAttrs.version}";
hash = "sha256-ZHD8ux3GLm5OsTkaEZfix5zgsdbLHpIxVtwKByduEzk=";
};
build-system = [ setuptools ];
buildInputs = [ graphviz ];
dependencies = [
graphviz
stdlib-list
];
nativeCheckInputs = [
pytestCheckHook
pyyaml
toml
];
postPatch = ''
# Path is hard-coded
substituteInPlace pydeps/dot.py \
--replace "dot -Gstart=1" "${lib.makeBinPath [ graphviz ]}/dot -Gstart=1"
'';
disabledTests = [
# Would require to have additional modules available
"test_find_package_names"
];
pythonImportsCheck = [ "pydeps" ];
meta = {
description = "Python module dependency visualization";
homepage = "https://github.com/thebjorn/pydeps";
changelog = "https://github.com/thebjorn/pydeps/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "pydeps";
};
})
|