1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, enaml
5, pyqtgraph
6, pythonocc-core
7, typing-extensions
8}:
9
10buildPythonPackage rec {
11 pname = "enamlx";
12 version = "0.6.2";
13
14 src = fetchFromGitHub {
15 owner = "frmdstryr";
16 repo = pname;
17 rev = "refs/tags/v${version}";
18 hash = "sha256-LHqOZ1uLWFbUeQAGKoMH9GljhRq1K4RTVWzgV/pt3g8=";
19 };
20
21 propagatedBuildInputs = [
22 enaml
23 # Until https://github.com/inkcut/inkcut/issues/105 perhaps
24 pyqtgraph
25 pythonocc-core
26 typing-extensions
27 ];
28
29 # qt_occ_viewer test requires enaml.qt.QtOpenGL which got dropped somewhere
30 # between enaml 0.9.0 and 0.10.0
31 doCheck = false;
32
33 pythonImportsCheck = [
34 "enamlx.core"
35 "enamlx.qt"
36 "enamlx.widgets"
37 ];
38
39 meta = with lib; {
40 homepage = "https://github.com/frmdstryr/enamlx";
41 description = "Additional Qt Widgets for Enaml";
42 license = licenses.mit;
43 maintainers = with maintainers; [ raboof ];
44 };
45}