2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pyqt5,
|
|
|
|
pyqtwebengine,
|
|
|
|
matplotlib,
|
|
|
|
orange-canvas-core,
|
|
|
|
pyqtgraph,
|
|
|
|
typing-extensions,
|
|
|
|
qt5,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-qt,
|
|
|
|
appnope,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "orange-widget-base";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "4.24.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-2cBg7s4+qMrb2G4sMk5yednOzJCNheHIQ3lty4KAg18=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
matplotlib
|
|
|
|
orange-canvas-core
|
|
|
|
pyqt5
|
|
|
|
pyqtgraph
|
|
|
|
pyqtwebengine
|
|
|
|
typing-extensions
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ appnope ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "orangewidget" ];
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
"orangewidget/report/tests/test_report.py"
|
|
|
|
"orangewidget/tests/test_widget.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Implementation of the base OWBaseWidget class and utilities for use in Orange Canvas workflows";
|
|
|
|
homepage = "https://github.com/biolab/orange-widget-base";
|
|
|
|
license = [ lib.licenses.gpl3Plus ];
|
|
|
|
maintainers = [ lib.maintainers.lucasew ];
|
|
|
|
};
|
|
|
|
}
|