2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
atom,
|
|
|
|
buildPythonPackage,
|
|
|
|
bytecode,
|
|
|
|
cppy,
|
|
|
|
fetchFromGitHub,
|
|
|
|
kiwisolver,
|
|
|
|
pegen,
|
|
|
|
ply,
|
|
|
|
qtpy,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
pythonOlder,
|
|
|
|
sip,
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "enaml";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.17.0";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nucleic";
|
|
|
|
repo = pname;
|
2022-04-27 09:35:20 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-DYLDQ9QwdK/a8eY0bFX31UNgxm8FUOaeNAnisFcyFNI=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
atom
|
|
|
|
bytecode
|
|
|
|
cppy
|
|
|
|
kiwisolver
|
|
|
|
pegen
|
|
|
|
ply
|
|
|
|
qtpy
|
2023-07-15 17:15:38 +00:00
|
|
|
sip
|
2023-04-29 16:46:19 +00:00
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
# qt bindings cannot be found during tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"enaml"
|
|
|
|
"enaml.applib"
|
|
|
|
"enaml.core"
|
|
|
|
"enaml.core.parser"
|
|
|
|
"enaml.layout"
|
|
|
|
# qt bindings cannot be found during checking
|
|
|
|
#"enaml.qt"
|
|
|
|
#"enaml.qt.docking"
|
|
|
|
"enaml.scintilla"
|
|
|
|
"enaml.stdlib"
|
|
|
|
"enaml.widgets"
|
|
|
|
"enaml.workbench"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Declarative User Interfaces for Python";
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://github.com/nucleic/enaml";
|
|
|
|
changelog = "https://github.com/nucleic/enaml/releases/tag/${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ raboof ];
|
|
|
|
};
|
|
|
|
}
|