nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 replaceVars,
7 graphviz,
8 pytestCheckHook,
9 chardet,
10 parameterized,
11 pyparsing,
12}:
13
14buildPythonPackage rec {
15 pname = "pydot";
16 version = "4.0.1";
17 pyproject = true;
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-whSPaBxKM+CL8OJqnl+OQJmoLg4qBoCY8yzoZXc2StU=";
22 };
23
24 build-system = [
25 setuptools
26 ];
27
28 dependencies = [ pyparsing ];
29
30 nativeCheckInputs = [
31 chardet
32 parameterized
33 pytestCheckHook
34 ];
35
36 patches = [
37 (replaceVars ./hardcode-graphviz-path.patch {
38 inherit graphviz;
39 })
40 ];
41
42 enabledTestPaths = [ "test/test_pydot.py" ];
43
44 pythonImportsCheck = [ "pydot" ];
45
46 meta = {
47 description = "Allows to create both directed and non directed graphs from Python";
48 homepage = "https://github.com/erocarrera/pydot";
49 changelog = "https://github.com/pydot/pydot/blob/v${version}/ChangeLog";
50 license = lib.licenses.mit;
51 maintainers = [ ];
52 };
53}