Commit 3f1bc451 authored by Doron Behar's avatar Doron Behar
Browse files

python312.pkgs.pyqtgraph: fix test causing segfault with Qt 6.10

Fixes #455139 .
parent 7dae1ff5
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,

  # build-system
  setuptools,
@@ -37,6 +38,17 @@ buildPythonPackage rec {
    hash = "sha256-MUwg1v6oH2TGmJ14Hp9i6KYierJbzPggK59QaHSXHVA=";
  };

  patches = [
    # Fixes a segmentation fault in tests with Qt 6.10. See:
    # https://github.com/pyqtgraph/pyqtgraph/issues/3390
    # The patch is the merge commit of:
    # https://github.com/pyqtgraph/pyqtgraph/pull/3370
    (fetchpatch {
      url = "https://github.com/pyqtgraph/pyqtgraph/commit/bf38b8527e778c9c0bb653bc0df7bb36018dcbae.patch";
      hash = "sha256-Tv4QK/OZvmDO3MOjswjch7DpF96U1uRN0dr8NIQ7+LY=";
    })
  ];

  build-system = [
    setuptools
  ];
@@ -79,11 +91,6 @@ buildPythonPackage rec {
      "test_rescaleData"
    ];

  disabledTestPaths = [
    # Segmentation fault
    "tests/test_qpainterpathprivate.py"
  ];

  meta = {
    description = "Scientific Graphics and GUI Library for Python";
    homepage = "https://www.pyqtgraph.org/";