2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, configobj
|
|
|
|
, fetchPypi
|
|
|
|
, importlib-resources
|
|
|
|
, pandas
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, tables
|
|
|
|
, traits
|
|
|
|
, traitsui
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apptools";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "5.2.1";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-xiaPXfzzCIvK92oAA+ULd3TQG1JY1xmbQQtIUv8iRuM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
configobj
|
2022-01-13 20:06:32 +00:00
|
|
|
traits
|
2021-03-20 04:20:00 +00:00
|
|
|
traitsui
|
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
importlib-resources
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
tables
|
|
|
|
pandas
|
2021-03-20 04:20:00 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$TMP
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"apptools"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-01-13 20:06:32 +00:00
|
|
|
description = "Set of packages that Enthought has found useful in creating a number of applications";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/enthought/apptools";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/enthought/apptools/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ knedlsepp ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|