2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
enaml,
|
|
|
|
pyqtgraph,
|
|
|
|
pythonocc-core,
|
|
|
|
typing-extensions,
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "enamlx";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.6.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "frmdstryr";
|
|
|
|
repo = pname;
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-C3/G0bnu1EQh0elqdrpCwkFPZU4qmkUX7WRSRK9nkM4=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
enaml
|
|
|
|
# Until https://github.com/inkcut/inkcut/issues/105 perhaps
|
|
|
|
pyqtgraph
|
|
|
|
pythonocc-core
|
2023-05-24 13:37:59 +00:00
|
|
|
typing-extensions
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|