blob: 6f69ca7818f2f0868f933b33bdbcd49c2f1b03d1 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
igraph,
matplotlib,
networkx,
numpy,
pandas,
pylint,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "iplotx";
version = "0.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "fabilab";
repo = "iplotx";
tag = version;
hash = "sha256-VYqNz6sbLgniNB9DTCbhgno/91Pd7zoGFg2vx68211Q=";
};
build-system = [ hatchling ];
dependencies = [
matplotlib
numpy
pandas
pylint
];
pythonRelaxDeps = [ "pylint" ];
optional-dependencies = {
igraph = [ igraph ];
networkx = [ networkx ];
};
postPatch = ''
# silence matplotlib warning
export MPLCONFIGDIR=$(mktemp -d)
'';
disabledTests = [
# These tests result in an ImageComparisonFailure
"test_complex"
"test_complex_rotatelabels"
"test_directed_graph"
"test_display_shortest_path"
"test_labels"
"test_labels_and_colors"
];
nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "iplotx" ];
meta = {
description = "Plot networkx from igraph and networkx";
homepage = "https://iplotx.readthedocs.io/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jboy ];
};
}
|