From 40d929432526971c1455c7f36cea2f528a815b01 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sun, 20 Oct 2024 21:14:41 -0700 Subject: [PATCH 1/2] python312Packages.xdis: support new python minor versions --- pkgs/development/python-modules/xdis/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/xdis/default.nix b/pkgs/development/python-modules/xdis/default.nix index 9a17ffa46517..b401e97d5a58 100644 --- a/pkgs/development/python-modules/xdis/default.nix +++ b/pkgs/development/python-modules/xdis/default.nix @@ -24,7 +24,6 @@ buildPythonPackage rec { }; # Backport magics for newer newer python versions - # 6.1.1 only supports up to 3.12.4 while nixpkgs is already on 3.12.5+ patches = [ (fetchpatch { url = "https://github.com/rocky/python-xdis/commit/fcba74a7f64c5e2879ca0779ff10f38f9229e7da.patch"; @@ -34,6 +33,18 @@ buildPythonPackage rec { url = "https://github.com/rocky/python-xdis/commit/b66976ff53a2c6e17a73fb7652ddd6c8054df8db.patch"; hash = "sha256-KO1y0nDTPmEZ+0/3Pjh+CvTdpr/p4AYZ8XdH5J+XzXo="; }) + (fetchpatch { + url = "https://github.com/rocky/python-xdis/commit/a9f50c0ba77cdbf4693388404c13a02796a4221a.patch"; + hash = "sha256-gwMagKBY7d/+ohESTSl6M2IEjzABxfrddpdr58VJAk8="; + }) + (fetchpatch { + url = "https://github.com/rocky/python-xdis/commit/d9e15acae76a413667912a10fbf8259711ed9c65.patch"; + hash = "sha256-hpmKg+K1RiLSnmUIS8KtZRVBfvTO9bWbpsNhBFUM38o="; + }) + (fetchpatch { + url = "https://github.com/rocky/python-xdis/commit/b412c878d0bc1b516bd01612d46d8830c36a14ad.patch"; + hash = "sha256-W1JuIXYLO6iyjWiSnzCoXzFsedZjesq31gEPgrtjxas="; + }) ]; propagatedBuildInputs = [ From 394a7326067ca557f0d0f401247b1956a789cd8f Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Mon, 21 Oct 2024 07:55:57 -0700 Subject: [PATCH 2/2] python312Packages.xdis: switch to pyproject and dependencies --- pkgs/development/python-modules/xdis/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/xdis/default.nix b/pkgs/development/python-modules/xdis/default.nix index b401e97d5a58..ce66720f17d0 100644 --- a/pkgs/development/python-modules/xdis/default.nix +++ b/pkgs/development/python-modules/xdis/default.nix @@ -6,13 +6,14 @@ fetchpatch, pytestCheckHook, pythonOlder, + setuptools, six, }: buildPythonPackage rec { pname = "xdis"; version = "6.1.1"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.6"; @@ -47,7 +48,11 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ click six ];