2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, apptools
|
2022-01-13 20:06:32 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-01-11 07:51:40 +00:00
|
|
|
, fetchpatch
|
2021-12-06 16:07:01 +00:00
|
|
|
, ipython
|
2022-01-13 20:06:32 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
2021-12-06 16:07:01 +00:00
|
|
|
, setuptools
|
2022-01-13 20:06:32 +00:00
|
|
|
, traits
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "envisage";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "6.1.0";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-AATsUNcYLB4vtyvuooAMDZx8p5fayijb6yJoUKTCW40=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
patches = [
|
|
|
|
# TODO: remove on next release
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-mistake-in-menu-group-specification.patch";
|
|
|
|
url = "https://github.com/enthought/envisage/commit/f23ea3864a5f6ffca665d47dec755992e062029b.patch";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-l4CWB4jRkSmoTDoV8CtP2w87Io2cLINKfOSaSPy7cXE=";
|
2023-01-11 07:51:40 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# for the optional dependency ipykernel, only versions < 6 are
|
|
|
|
# supported, so it's not included in the tests, and not propagated
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
traits
|
|
|
|
apptools
|
|
|
|
setuptools
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$PWD/HOME
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
ipython
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
disabledTestPaths = lib.optionals (pythonAtLeast "3.10") [
|
|
|
|
# https://github.com/enthought/envisage/issues/455
|
|
|
|
"envisage/tests/test_egg_basket_plugin_manager.py"
|
|
|
|
"envisage/tests/test_egg_plugin_manager.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"envisage"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-01-13 20:06:32 +00:00
|
|
|
description = "Framework for building applications whose functionalities can be extended by adding plug-ins";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/enthought/envisage";
|
|
|
|
license = licenses.bsdOriginal;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with lib.maintainers; [ knedlsepp ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|