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

Changed files
+28 -10
pkgs
development
python-modules
guidata
plotpy
+19 -3
pkgs/development/python-modules/guidata/default.nix
···
{
lib,
+
stdenv,
buildPythonPackage,
fetchFromGitHub,
···
setuptools,
# dependencies
+
distutils,
+
h5py,
numpy,
qtpy,
-
h5py,
requests,
tomli,
···
];
dependencies = [
+
distutils
+
h5py
numpy
qtpy
-
h5py
requests
tomli
];
···
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 = {
···
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
pkgs/development/python-modules/plotpy/default.nix
···
{
lib,
+
stdenv,
buildPythonPackage,
fetchFromGitHub,
···
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
···
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"
···
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 ];
};