2020-08-20 17:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, enaml
|
|
|
|
, pyqtgraph
|
|
|
|
, pythonocc-core
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "enamlx";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.4.6";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "frmdstryr";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "144bsh6lfrrjk6dygrbc2bfhlv742avj53awxnhgai04hab0214r";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
enaml
|
|
|
|
# Until https://github.com/inkcut/inkcut/issues/105 perhaps
|
|
|
|
pyqtgraph
|
|
|
|
pythonocc-core
|
|
|
|
];
|
|
|
|
|
|
|
|
# qt_occ_viewer test requires enaml.qt.QtOpenGL which got dropped somewhere
|
|
|
|
# between enaml 0.9.0 and 0.10.0
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"enamlx.core"
|
|
|
|
"enamlx.qt"
|
|
|
|
"enamlx.widgets"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/frmdstryr/enamlx";
|
|
|
|
description = "Additional Qt Widgets for Enaml";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ raboof ];
|
|
|
|
};
|
|
|
|
}
|