blob: 7fa6d93ebe2e64fa7b4b59e416cfce4f64c6f700 (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
replaceVars,
graphviz,
pytestCheckHook,
chardet,
parameterized,
pyparsing,
}:
buildPythonPackage rec {
pname = "pydot";
version = "4.0.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-whSPaBxKM+CL8OJqnl+OQJmoLg4qBoCY8yzoZXc2StU=";
};
build-system = [
setuptools
];
dependencies = [ pyparsing ];
nativeCheckInputs = [
chardet
parameterized
pytestCheckHook
];
patches = [
(replaceVars ./hardcode-graphviz-path.patch {
inherit graphviz;
})
];
enabledTestPaths = [ "test/test_pydot.py" ];
pythonImportsCheck = [ "pydot" ];
meta = {
description = "Allows to create both directed and non directed graphs from Python";
homepage = "https://github.com/erocarrera/pydot";
changelog = "https://github.com/pydot/pydot/blob/v${version}/ChangeLog";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|