Unverified Commit 5258c105 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #233108 from fabaff/xdis-fix

python310Packages.xdis: disable on Python 3.11
parents 121320cc 0d531f16
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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 ];
  };