diff --git a/pkgs/development/python-modules/cyclonedds-python/default.nix b/pkgs/development/python-modules/cyclonedds-python/default.nix index 22ad399498a4..1b002fdd20c8 100644 --- a/pkgs/development/python-modules/cyclonedds-python/default.nix +++ b/pkgs/development/python-modules/cyclonedds-python/default.nix @@ -10,11 +10,12 @@ pytestCheckHook, pytest-mock, pytest-cov-stub, + pythonOlder, }: buildPythonPackage rec { pname = "cyclonedds-python"; - version = "0.10.5"; + version = "0.11.0"; pyproject = true; src = fetchFromGitHub { @@ -27,8 +28,17 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "pytest-cov" "" + '' + + lib.optionalString (!pythonOlder "3.13") '' + substituteInPlace clayer/pysertype.c \ + --replace-fail "_Py_IsFinalizing()" "Py_IsFinalizing()" ''; + disabledTests = lib.optionals (!pythonOlder "3.13") [ + "test_dynamic_subscribe_complex" + "test_dynamic_publish_complex" + ]; + build-system = [ setuptools ]; buildInputs = [ cyclonedds ]; @@ -36,6 +46,7 @@ buildPythonPackage rec { dependencies = [ rich-click ]; env.CYCLONEDDS_HOME = "${cyclonedds.out}"; + env.NIX_CFLAGS_COMPILE = "-Wno-error=discarded-qualifiers"; nativeCheckInputs = [ pytestCheckHook @@ -43,6 +54,8 @@ buildPythonPackage rec { pytest-cov-stub ]; + disabled = (!pythonOlder "3.14"); + meta = { description = "Python binding for Eclipse Cyclone DDS"; homepage = "https://github.com/eclipse-cyclonedds/cyclonedds-python";