python3Packages.cyclonedds-python: 0.10.5 -> 0.11.0; fix build

This commit is contained in:
pancaek
2026-02-22 12:18:21 -08:00
parent 51e58624f3
commit c2ca0bed26
@@ -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";