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