Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 71 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, gitUpdater, stdenv, buildPythonPackage, setuptools, fetchFromGitHub, pyqt5, pyqtwebengine, matplotlib, orange-canvas-core, pyqtgraph, typing-extensions, qt5, pytestCheckHook, pytest-qt, appnope,}:
buildPythonPackage rec { pname = "orange-widget-base"; version = "4.26.0"; pyproject = true;
src = fetchFromGitHub { owner = "biolab"; repo = "orange-widget-base"; tag = version; hash = "sha256-XoQlZaY6pAflL0vWzSALDABOPybqV28xB/AS8L0DcBc="; };
build-system = [ setuptools ];
dependencies = [ matplotlib orange-canvas-core pyqt5 pyqtgraph pyqtwebengine typing-extensions ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ appnope ];
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" ];
passthru.updateScript = gitUpdater { };
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 ]; };}