diff options
Diffstat (limited to 'pkgs/development/python-modules/graphviz/default.nix')
-rw-r--r-- | pkgs/development/python-modules/graphviz/default.nix | 55 |
1 files changed, 22 insertions, 33 deletions
diff --git a/pkgs/development/python-modules/graphviz/default.nix b/pkgs/development/python-modules/graphviz/default.nix index 513e7c8584942..2bf0cfe01c114 100644 --- a/pkgs/development/python-modules/graphviz/default.nix +++ b/pkgs/development/python-modules/graphviz/default.nix @@ -1,34 +1,34 @@ -{ lib -, stdenv -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, substituteAll -, graphviz-nox -, xdg-utils -, makeFontsConf -, freefont_ttf -, setuptools -, mock -, pytest_7 -, pytest-mock -, python +{ + lib, + stdenv, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + substituteAll, + graphviz-nox, + xdg-utils, + makeFontsConf, + freefont_ttf, + setuptools, + mock, + pytest_7, + pytest-mock, + python, }: buildPythonPackage rec { pname = "graphviz"; - version = "0.20.1"; + version = "0.20.3"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; # patch does not apply to PyPI tarball due to different line endings src = fetchFromGitHub { owner = "xflr6"; repo = "graphviz"; - rev = version; - hash = "sha256-plhWG9mE9DoTMg7mWCvFLAgtBx01LAgJ0gQ/mqBU3yc="; + rev = "refs/tags/${version}"; + hash = "sha256-IqjqcBEL4BK/VfRjdxJ9t/DkG8OMAoXJxbW5JXpALuw="; }; patches = [ @@ -37,12 +37,6 @@ buildPythonPackage rec { graphviz = graphviz-nox; xdgutils = xdg-utils; }) - # https://github.com/xflr6/graphviz/issues/209 - (fetchpatch { - name = "fix-tests-with-python312.patch"; - url = "https://github.com/xflr6/graphviz/commit/5ce9fc5de4f2284baa27d7a8d68ab0885d032868.patch"; - hash = "sha256-jREPACSc4aoHY3G+39e8Axqajw4eeKkAeVu2s40v1nI="; - }) ]; postPatch = '' @@ -50,13 +44,9 @@ buildPythonPackage rec { ''; # Fontconfig error: Cannot load default config file - FONTCONFIG_FILE = makeFontsConf { - fontDirectories = [ freefont_ttf ]; - }; + FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ freefont_ttf ]; }; - nativeBuildInputs = [ - setuptools - ]; + build-system = [ setuptools ]; nativeCheckInputs = [ mock @@ -82,5 +72,4 @@ buildPythonPackage rec { license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; }; - } |