Commit c2ca0bed authored by pancaek's avatar pancaek
Browse files

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

parent 51e58624
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -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";