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