From 0fdcf9a6a987dc4c311e0c3b5ec6c28b569e5479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 9 Jan 2024 04:49:31 -0800 Subject: [PATCH] python311Packages.pygraphviz: 1.11 -> 1.12 Diff: https://github.com/pygraphviz/pygraphviz/compare/pygraphviz-1.11...pygraphviz-1.12 Changelog: https://github.com/pygraphviz/pygraphviz/releases/tag/pygraphviz-1.12 --- .../python-modules/pygraphviz/default.nix | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/pygraphviz/default.nix b/pkgs/development/python-modules/pygraphviz/default.nix index df256c3a93e6..61fee2859d18 100644 --- a/pkgs/development/python-modules/pygraphviz/default.nix +++ b/pkgs/development/python-modules/pygraphviz/default.nix @@ -1,25 +1,27 @@ { lib , buildPythonPackage -, isPy3k -, fetchPypi +, pythonOlder +, fetchFromGitHub , substituteAll , graphviz , coreutils , pkg-config +, setuptools , pytest }: buildPythonPackage rec { pname = "pygraphviz"; - version = "1.11"; - format = "setuptools"; + version = "1.12"; + pyproject = true; - disabled = !isPy3k; + disabled = pythonOlder "3.10"; - src = fetchPypi { - inherit pname version; - hash = "sha256-qX61ztJm9FBT67HyxsbSkJFpBQPjpcFL5/kIs3sG8tQ="; - extension = "zip"; + src = fetchFromGitHub { + owner = "pygraphviz"; + repo = "pygraphviz"; + rev = "pygraphviz-${version}"; + hash = "sha256-XDP77H724eiMa/V18OtLxpUpxlIVDmcFLMYOAbazquo="; }; patches = [ @@ -30,7 +32,10 @@ buildPythonPackage rec { }) ]; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ + pkg-config + setuptools + ]; buildInputs = [ graphviz ];