Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / enamlx / default.nix
blob344000fa118ebe8f5762188dc3e4d3eebcca8c9c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , enaml
5 , pyqtgraph
6 , pythonocc-core
7 }:
9 buildPythonPackage rec {
10   pname = "enamlx";
11   version = "0.4.3";
13   src = fetchFromGitHub {
14     owner = "frmdstryr";
15     repo = pname;
16     rev = "v${version}";
17     sha256 = "1rlrx3cw6h1zl9svnqbzwdfy8469qa1y7w6576lbhdwpfhpipscy";
18   };
20   patches = [
21     # Minimally modified version of https://github.com/frmdstryr/enamlx/commit/16df11227b8cee724624541d274e481802ea67e3
22     # (without the change to setup.py), already on master and expected in the first post-0.4.3 release
23     ./replace-unicode-with-str.patch
24   ];
26   propagatedBuildInputs = [
27     enaml
28     # Until https://github.com/inkcut/inkcut/issues/105 perhaps
29     pyqtgraph
30     pythonocc-core
31   ];
33   # qt_occ_viewer test requires enaml.qt.QtOpenGL which got dropped somewhere
34   # between enaml 0.9.0 and 0.10.0
35   doCheck = false;
37   pythonImportsCheck = [
38     "enamlx.core"
39     "enamlx.qt"
40     "enamlx.widgets"
41   ];
43   meta = with lib; {
44     homepage = "https://github.com/frmdstryr/enamlx";
45     description = "Additional Qt Widgets for Enaml";
46     license = licenses.mit;
47     maintainers = with maintainers; [ raboof ];
48   };