pythonPackages.graphviz: fix tests

+9 -2
+9 -2
pkgs/development/python-modules/graphviz/default.nix
··· 8 8 , mock 9 9 , pytestCheckHook 10 10 , pytest-mock 11 - , pytestcov 12 11 }: 13 12 14 13 buildPythonPackage rec { ··· 30 29 }) 31 30 ]; 32 31 32 + postPatch = '' 33 + sed -i "/--cov/d" setup.cfg 34 + ''; 35 + 33 36 # Fontconfig error: Cannot load default config file 34 37 FONTCONFIG_FILE = makeFontsConf { 35 38 fontDirectories = [ freefont_ttf ]; 36 39 }; 37 40 38 - checkInputs = [ mock pytestCheckHook pytest-mock pytestcov ]; 41 + checkInputs = [ mock pytestCheckHook pytest-mock ]; 42 + 43 + preCheck = '' 44 + export HOME=$TMPDIR 45 + ''; 39 46 40 47 meta = with lib; { 41 48 description = "Simple Python interface for Graphviz";