Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

105 lines
2.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
anyqt,
cachecontrol,
commonmark,
dictdiffer,
docutils,
filelock,
lockfile,
numpy,
pip,
trubar,
qasync,
requests-cache,
typing-extensions,
# tests
qt5,
pytest-qt,
pytestCheckHook,
stdenv,
gitUpdater,
}:
buildPythonPackage rec {
pname = "orange-canvas-core";
version = "0.2.6";
pyproject = true;
src = fetchFromGitHub {
owner = "biolab";
repo = "orange-canvas-core";
tag = version;
hash = "sha256-cEy9ADU/jZoKmGXVlqwG+qWKZ22STjALgCb1IxAwpO0=";
};
build-system = [ setuptools ];
dependencies = [
anyqt
cachecontrol
commonmark
dictdiffer
docutils
filelock
lockfile
numpy
pip
qasync
requests-cache
typing-extensions
trubar
];
pythonImportsCheck = [ "orangecanvas" ];
preCheck = ''
export HOME=$(mktemp -d)
export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}"
export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins";
export QT_QPA_PLATFORM=offscreen
'';
nativeCheckInputs = [
pytest-qt
pytestCheckHook
];
disabledTests = [
# Failed: CALL ERROR: Exceptions caught in Qt event loop
"test_create_new_window"
"test_dont_load_swp_on_new_window"
"test_editlinksnode"
"test_flattened"
"test_links_edit"
"test_links_edit_widget"
"test_new_window"
"test_toolbox"
"test_tooltree_registry"
"test_widgettoolgrid"
];
passthru.updateScript = gitUpdater { };
disabledTestPaths = [ "orangecanvas/canvas/items/tests/test_graphicstextitem.py" ];
meta = {
description = "Orange framework for building graphical user interfaces for editing workflows";
homepage = "https://github.com/biolab/orange-canvas-core";
changelog = "https://github.com/biolab/orange-canvas-core/releases/tag/${src.tag}";
license = [ lib.licenses.gpl3 ];
maintainers = [ lib.maintainers.lucasew ];
# Segmentation fault during tests
broken = stdenv.hostPlatform.isDarwin;
};
}