2022-01-13 09:14:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, configobj
|
|
|
|
, fetchpatch
|
|
|
|
, fetchPypi
|
|
|
|
, importlib-resources
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
|
|
|
, tables
|
|
|
|
, traits
|
|
|
|
, traitsui
|
2019-01-31 21:36:33 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apptools";
|
2021-03-26 13:50:31 +00:00
|
|
|
version = "5.1.0";
|
2022-01-13 09:14:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-01-31 21:36:33 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-26 13:50:31 +00:00
|
|
|
sha256 = "12x5lcs1cllpybz7f0i1lcwvmqsaa5n818wb2165lj049wqxx4yh";
|
2019-01-31 21:36:33 +00:00
|
|
|
};
|
|
|
|
|
2021-03-26 18:37:13 +00:00
|
|
|
patches = [
|
|
|
|
# python39: importlib_resources -> importlib.resources. This patch will be included
|
|
|
|
# in the next release after 5.1.0.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/enthought/apptools/commit/0ae4f52f19a8c0ca9d7926e17c7de949097f24b4.patch";
|
|
|
|
sha256 = "165aiwjisr5c3lasg7xblcha7y1y5bq23vi3g9gc80c24bzwcbsw";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-03-26 13:50:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
configobj
|
2022-01-13 09:14:22 +00:00
|
|
|
traits
|
2021-03-26 13:50:31 +00:00
|
|
|
traitsui
|
2021-03-26 18:37:13 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
2021-03-26 13:50:31 +00:00
|
|
|
importlib-resources
|
2020-04-13 17:32:37 +01:00
|
|
|
];
|
|
|
|
|
2019-01-31 21:36:33 +00:00
|
|
|
checkInputs = [
|
|
|
|
tables
|
|
|
|
pandas
|
2021-03-26 13:50:31 +00:00
|
|
|
pytestCheckHook
|
2019-01-31 21:36:33 +00:00
|
|
|
];
|
|
|
|
|
2021-03-26 13:50:31 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMP
|
|
|
|
'';
|
2019-01-31 21:36:33 +00:00
|
|
|
|
2022-01-13 09:14:22 +00:00
|
|
|
disabledTestPaths = lib.optionals (pythonAtLeast "3.10") [
|
|
|
|
# https://github.com/enthought/apptools/issues/303
|
|
|
|
"apptools/io/h5/tests/test_dict_node.py"
|
|
|
|
"apptools/io/h5/tests/test_file.py"
|
|
|
|
"apptools/io/h5/tests/test_table_node.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"apptools"
|
|
|
|
];
|
|
|
|
|
2020-04-09 17:22:12 +01:00
|
|
|
meta = with lib; {
|
2022-01-13 09:14:22 +00:00
|
|
|
description = "Set of packages that Enthought has found useful in creating a number of applications";
|
2020-04-09 17:22:12 +01:00
|
|
|
homepage = "https://github.com/enthought/apptools";
|
2019-01-31 21:36:33 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2022-01-13 09:14:22 +00:00
|
|
|
maintainers = with maintainers; [ knedlsepp ];
|
2019-01-31 21:36:33 +00:00
|
|
|
};
|
|
|
|
}
|