From 6bcbd06fa61a8c1001749a377d5a778f6a16469e Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Mon, 23 Mar 2026 11:33:13 +0100 Subject: [PATCH] python3Packages.cocotb: disable for python 3.14+ --- pkgs/development/python-modules/cocotb/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/cocotb/default.nix b/pkgs/development/python-modules/cocotb/default.nix index 5b25f03143ca..c5fb1a3df803 100644 --- a/pkgs/development/python-modules/cocotb/default.nix +++ b/pkgs/development/python-modules/cocotb/default.nix @@ -1,6 +1,7 @@ { lib, buildPythonPackage, + pythonAtLeast, fetchFromGitHub, setuptools, setuptools-scm, @@ -19,6 +20,11 @@ buildPythonPackage rec { version = "2.0.1"; format = "setuptools"; + # RuntimeError: cocotb 2.0.1 only supports a maximum Python version of 3.13. + # You can suppress this error by defining the environment variable COCOTB_IGNORE_PYTHON_REQUIRES + # There is no guarantee this will work and no support will be provided. + disabled = pythonAtLeast "3.14"; + # pypi source doesn't include tests src = fetchFromGitHub { owner = "cocotb";