python3Packages.graphviz: 0.20.3 -> 0.21 (#417019)

authored by dotlambda and committed by GitHub 93e7341e 5f11c713

+12 -25
+12 -25
pkgs/development/python-modules/graphviz/default.nix
··· 2 lib, 3 stdenv, 4 buildPythonPackage, 5 - pythonOlder, 6 fetchFromGitHub, 7 replaceVars, 8 graphviz-nox, ··· 11 freefont_ttf, 12 setuptools, 13 mock, 14 - pytest_7, 15 pytest-mock, 16 - python, 17 }: 18 19 buildPythonPackage rec { 20 pname = "graphviz"; 21 - version = "0.20.3"; 22 pyproject = true; 23 24 - disabled = pythonOlder "3.8"; 25 - 26 - # patch does not apply to PyPI tarball due to different line endings 27 src = fetchFromGitHub { 28 owner = "xflr6"; 29 repo = "graphviz"; 30 tag = version; 31 - hash = "sha256-IqjqcBEL4BK/VfRjdxJ9t/DkG8OMAoXJxbW5JXpALuw="; 32 }; 33 34 patches = [ ··· 38 }) 39 ]; 40 41 - postPatch = '' 42 - sed -i "/--cov/d" setup.cfg 43 - ''; 44 - 45 # Fontconfig error: Cannot load default config file 46 FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; 47 ··· 49 50 nativeCheckInputs = [ 51 mock 52 - pytest_7 53 pytest-mock 54 ]; 55 56 - checkPhase = '' 57 - runHook preCheck 58 - 59 - HOME=$TMPDIR ${python.interpreter} run-tests.py 60 - 61 - runHook postCheck 62 - ''; 63 - 64 # Too many failures due to attempting to connect to com.apple.fonts daemon 65 doCheck = !stdenv.hostPlatform.isDarwin; 66 67 - meta = with lib; { 68 description = "Simple Python interface for Graphviz"; 69 homepage = "https://github.com/xflr6/graphviz"; 70 - changelog = "https://github.com/xflr6/graphviz/blob/${src.rev}/CHANGES.rst"; 71 - license = licenses.mit; 72 - maintainers = with maintainers; [ dotlambda ]; 73 }; 74 }
··· 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 replaceVars, 7 graphviz-nox, ··· 10 freefont_ttf, 11 setuptools, 12 mock, 13 + pytest-cov-stub, 14 pytest-mock, 15 + pytest7CheckHook, 16 + writableTmpDirAsHomeHook, 17 }: 18 19 buildPythonPackage rec { 20 pname = "graphviz"; 21 + version = "0.21"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "xflr6"; 26 repo = "graphviz"; 27 tag = version; 28 + hash = "sha256-o6woY+UhbsJtUqIzYGXlC0Pw3su7WG4xlAKSslSADwI="; 29 }; 30 31 patches = [ ··· 35 }) 36 ]; 37 38 # Fontconfig error: Cannot load default config file 39 FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; 40 ··· 42 43 nativeCheckInputs = [ 44 mock 45 + pytest-cov-stub 46 pytest-mock 47 + pytest7CheckHook 48 + writableTmpDirAsHomeHook 49 ]; 50 51 # Too many failures due to attempting to connect to com.apple.fonts daemon 52 doCheck = !stdenv.hostPlatform.isDarwin; 53 54 + meta = { 55 description = "Simple Python interface for Graphviz"; 56 homepage = "https://github.com/xflr6/graphviz"; 57 + changelog = "https://github.com/xflr6/graphviz/blob/${src.tag}/CHANGES.rst"; 58 + license = lib.licenses.mit; 59 + maintainers = with lib.maintainers; [ dotlambda ]; 60 }; 61 }