python310Packages.xdis: disable on Python 3.11

- add more Python 3.10.x
This commit is contained in:
Fabian Affolter 2023-05-21 01:02:55 +02:00
parent b7a9deb5bd
commit 0d531f162e

View file

@ -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 ];
};