tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.graphviz: fix tests
Robert Schütz
4 years ago
c4ae1753
fc4cc6ca
+9
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
graphviz
default.nix
+9
-2
pkgs/development/python-modules/graphviz/default.nix
···
8
, mock
9
, pytestCheckHook
10
, pytest-mock
11
-
, pytestcov
12
}:
13
14
buildPythonPackage rec {
···
30
})
31
];
32
0
0
0
0
33
# Fontconfig error: Cannot load default config file
34
FONTCONFIG_FILE = makeFontsConf {
35
fontDirectories = [ freefont_ttf ];
36
};
37
38
-
checkInputs = [ mock pytestCheckHook pytest-mock pytestcov ];
0
0
0
0
39
40
meta = with lib; {
41
description = "Simple Python interface for Graphviz";
···
8
, mock
9
, pytestCheckHook
10
, pytest-mock
0
11
}:
12
13
buildPythonPackage rec {
···
29
})
30
];
31
32
+
postPatch = ''
33
+
sed -i "/--cov/d" setup.cfg
34
+
'';
35
+
36
# Fontconfig error: Cannot load default config file
37
FONTCONFIG_FILE = makeFontsConf {
38
fontDirectories = [ freefont_ttf ];
39
};
40
41
+
checkInputs = [ mock pytestCheckHook pytest-mock ];
42
+
43
+
preCheck = ''
44
+
export HOME=$TMPDIR
45
+
'';
46
47
meta = with lib; {
48
description = "Simple Python interface for Graphviz";