mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python312Packages.plotpy: skip crashing tests on darwin
This commit is contained in:
parent
04e9a8e5ba
commit
d0dfd3b3f9
1 changed files with 9 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
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 ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue