Unverified Commit 8833b8d6 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.guidata: skip crashing tests on darwin (#387050)

parents d325772e d0dfd3b3
Loading
Loading
Loading
Loading
+19 −3
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

@@ -7,9 +8,10 @@
  setuptools,

  # dependencies
  distutils,
  h5py,
  numpy,
  qtpy,
  h5py,
  requests,
  tomli,

@@ -43,9 +45,10 @@ buildPythonPackage rec {
  ];

  dependencies = [
    distutils
    h5py
    numpy
    qtpy
    h5py
    requests
    tomli
  ];
@@ -62,6 +65,19 @@ buildPythonPackage rec {
    export QT_QPA_PLATFORM=offscreen
  '';

  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
    # Fatal Python error: Segmentation fault
    # guidata/dataset/qtitemwidgets.py", line 633 in __init__
    "test_all_items"
    "test_loadsave_hdf5"
    "test_loadsave_json"
    # guidata/dataset/qtitemwidgets.py", line 581 in __init__
    "test_editgroupbox"
    "test_item_order"
    # guidata/qthelpers.py", line 710 in exec_dialog
    "test_arrayeditor"
  ];

  pythonImportsCheck = [ "guidata" ];

  passthru = {
@@ -89,7 +105,7 @@ buildPythonPackage rec {
  meta = {
    description = "Python library generating graphical user interfaces for easy dataset editing and display";
    homepage = "https://github.com/PlotPyStack/guidata";
    changelog = "https://github.com/PlotPyStack/guidata/blob/${src.rev}/CHANGELOG.md";
    changelog = "https://github.com/PlotPyStack/guidata/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ doronbehar ];
  };
+9 −7
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

@@ -45,12 +46,6 @@ buildPythonPackage rec {
    cython
    setuptools
  ];
  # Both numpy versions are supported, see:
  # https://github.com/PlotPyStack/PlotPy/blob/v2.6.2/pyproject.toml#L8-L9
  postConfigure = ''
    substituteInPlace pyproject.toml \
      --replace-fail 'numpy >= 2.0.0' numpy
  '';

  dependencies = [
    guidata
@@ -76,6 +71,13 @@ buildPythonPackage rec {
    cd $out
  '';

  disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
    # Fatal Python error: Segmentation fault
    # in plotpy/widgets/resizedialog.py", line 99 in __init__
    "test_resize_dialog"
    "test_tool"
  ];

  pythonImportsCheck = [
    "plotpy"
    "plotpy.tests"
@@ -110,7 +112,7 @@ buildPythonPackage rec {
  meta = {
    description = "Curve and image plotting tools for Python/Qt applications";
    homepage = "https://github.com/PlotPyStack/PlotPy";
    changelog = "https://github.com/PlotPyStack/PlotPy/blob/${src.tag}/CHANGELOG.md";
    changelog = "https://github.com/PlotPyStack/PlotPy/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ doronbehar ];
  };