From 577af7e6c3372bccc4f6040c9fa3f5f36cea5dbb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 13:53:25 +0200 Subject: [PATCH] python312Packages.distorm3: disable on Python 3.12 Still uses distutils, gdabah/distorm#191 --- pkgs/development/python-modules/distorm3/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/distorm3/default.nix b/pkgs/development/python-modules/distorm3/default.nix index 3f3e017cb3284ac..e6f3eb616337884 100644 --- a/pkgs/development/python-modules/distorm3/default.nix +++ b/pkgs/development/python-modules/distorm3/default.nix @@ -2,9 +2,10 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, pythonOlder, pytestCheckHook, - setuptools, + setuptools, yasm, }: @@ -13,7 +14,8 @@ buildPythonPackage rec { version = "3.5.2"; pyproject = true; - disabled = pythonOlder "3.5"; + # Still uses distutils, https://github.com/gdabah/distorm/issues/191 + disabled = pythonOlder "3.5" || pythonAtLeast "3.12"; src = fetchFromGitHub { owner = "gdabah";