1{ lib
2, buildPythonPackage
3, fetchPypi
4, anyqt
5, cachecontrol
6, commonmark
7, dictdiffer
8, docutils
9, filelock
10, lockfile
11, numpy
12, pytest-qt
13, pytestCheckHook
14, qasync
15, qt5
16, requests-cache
17}:
18
19buildPythonPackage rec {
20 pname = "orange-canvas-core";
21 version = "0.1.35";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-xLCwjeNDx9RqxlNkIWMo0Pcrg7akGuu4Rv9oRDgOK18=";
26 };
27
28 propagatedBuildInputs = [
29 anyqt
30 cachecontrol
31 commonmark
32 dictdiffer
33 docutils
34 filelock
35 lockfile
36 numpy
37 qasync
38 requests-cache
39 ];
40
41 pythonImportsCheck = [ "orangecanvas" ];
42
43 preCheck = ''
44 export HOME=$(mktemp -d)
45 export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}"
46 export QT_QPA_PLATFORM_PLUGIN_PATH="${qt5.qtbase.bin}/lib/qt-${qt5.qtbase.version}/plugins";
47 export QT_QPA_PLATFORM=offscreen
48 '';
49
50 nativeCheckInputs = [
51 pytest-qt
52 pytestCheckHook
53 ];
54
55 disabledTestPaths = [
56 "orangecanvas/canvas/items/tests/test_graphicstextitem.py"
57 ];
58
59 meta = {
60 description = "Orange framework for building graphical user interfaces for editing workflows";
61 homepage = "https://github.com/biolab/orange-canvas-core";
62 license = [ lib.licenses.gpl3 ];
63 maintainers = [ lib.maintainers.lucasew ];
64 };
65}