Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 63 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, stdenv, buildPythonPackage, fetchPypi, pyqt5, pyqtwebengine, matplotlib, orange-canvas-core, pyqtgraph, typing-extensions, qt5, pytestCheckHook, pytest-qt, appnope}:
buildPythonPackage rec { pname = "orange-widget-base"; version = "4.22.0"; format = "setuptools";
src = fetchPypi { inherit pname version; hash = "sha256-nV2aBPZzn7K+QECtCVoLLh5smG31zE2G9jFTKlxh9qM="; };
propagatedBuildInputs = [ matplotlib orange-canvas-core pyqt5 pyqtgraph pyqtwebengine typing-extensions ] ++ lib.optionals stdenv.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" ];
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 ]; };}