diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/graphviz/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/graphviz/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/graphviz/default.nix b/nixpkgs/pkgs/development/python-modules/graphviz/default.nix index 1a0e6d903a47..0a2413e9d761 100644 --- a/nixpkgs/pkgs/development/python-modules/graphviz/default.nix +++ b/nixpkgs/pkgs/development/python-modules/graphviz/default.nix @@ -8,7 +8,6 @@ , mock , pytestCheckHook , pytest-mock -, pytestcov }: buildPythonPackage rec { @@ -30,12 +29,20 @@ buildPythonPackage rec { }) ]; + postPatch = '' + sed -i "/--cov/d" setup.cfg + ''; + # Fontconfig error: Cannot load default config file FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; - checkInputs = [ mock pytestCheckHook pytest-mock pytestcov ]; + checkInputs = [ mock pytestCheckHook pytest-mock ]; + + preCheck = '' + export HOME=$TMPDIR + ''; meta = with lib; { description = "Simple Python interface for Graphviz"; |