Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / orange-widget-base / default.nix
blob95dadbb04d796c7205051fd0840d164d223fd48d
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchPypi
5 , pyqt5
6 , pyqtwebengine
7 , matplotlib
8 , orange-canvas-core
9 , pyqtgraph
10 , typing-extensions
11 , qt5
12 , pytestCheckHook
13 , pytest-qt
14 , appnope
17 buildPythonPackage rec {
18   pname = "orange-widget-base";
19   version = "4.23.0";
20   format = "setuptools";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-mz+BcZEdg1p9V0ewYRrw3jKBWLMbL9RR6o4hUEUx9DA=";
25   };
27   propagatedBuildInputs = [
28     matplotlib
29     orange-canvas-core
30     pyqt5
31     pyqtgraph
32     pyqtwebengine
33     typing-extensions
34   ] ++ lib.optionals stdenv.isDarwin [
35     appnope
36   ];
38   pythonImportsCheck = [ "orangewidget" ];
40   preCheck = ''
41     export HOME=$(mktemp -d)
42     export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}"
43     export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins";
44     export QT_QPA_PLATFORM=offscreen
45   '';
47   nativeCheckInputs = [
48     pytest-qt
49     pytestCheckHook
50   ];
52   disabledTestPaths = [
53     "orangewidget/report/tests/test_report.py"
54     "orangewidget/tests/test_widget.py"
55   ];
57   meta = {
58     description = "Implementation of the base OWBaseWidget class and utilities for use in Orange Canvas workflows";
59     homepage = "https://github.com/biolab/orange-widget-base";
60     license = [ lib.licenses.gpl3Plus ];
61     maintainers = [ lib.maintainers.lucasew ];
62   };