From 0d531f162ed0e8e5052114f88124eaf8d21f98db Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 May 2023 01:02:55 +0200 Subject: [PATCH] python310Packages.xdis: disable on Python 3.11 - add more Python 3.10.x --- pkgs/development/python-modules/xdis/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/xdis/default.nix b/pkgs/development/python-modules/xdis/default.nix index 4528bad359d..9f5d40248c7 100644 --- a/pkgs/development/python-modules/xdis/default.nix +++ b/pkgs/development/python-modules/xdis/default.nix @@ -4,6 +4,7 @@ , fetchFromGitHub , fetchpatch , pytestCheckHook +, pythonAtLeast , pythonOlder , six }: @@ -13,7 +14,8 @@ buildPythonPackage rec { version = "6.0.5"; format = "setuptools"; - disabled = pythonOlder "3.6"; + # No support for Python 3.11, https://github.com/rocky/python-xdis/issues/98 + disabled = pythonOlder "3.6" || pythonAtLeast "3.11"; src = fetchFromGitHub { owner = "rocky"; @@ -25,7 +27,7 @@ buildPythonPackage rec { postPatch = '' # Our Python release is not in the test matrix substituteInPlace xdis/magics.py \ - --replace "3.10.4" "3.10.5 3.10.6" + --replace "3.10.4" "3.10.5 3.10.6 3.10.7 3.10.8 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14" ''; propagatedBuildInputs = [ @@ -60,6 +62,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python cross-version byte-code disassembler and marshal routines"; homepage = "https://github.com/rocky/python-xdis"; + changelog = "https://github.com/rocky/python-xdis/releases/tag/${version}"; license = licenses.gpl2Plus; maintainers = with maintainers; [ onny ]; };