2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
configobj,
|
2024-07-27 06:49:29 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
numpy,
|
2024-06-05 15:53:02 +00:00
|
|
|
pandas,
|
2024-07-27 06:49:29 +00:00
|
|
|
pyface,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
tables,
|
|
|
|
traits,
|
|
|
|
traitsui,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "apptools";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "5.3.0";
|
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "enthought";
|
|
|
|
repo = "apptools";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-qNtDHmvl5HbtdbjnugVM7CKVCW+ysAwRB9e2Ounh808=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ traits ];
|
|
|
|
|
|
|
|
optional-dependencies = {
|
|
|
|
gui = [
|
|
|
|
pyface
|
|
|
|
traitsui
|
|
|
|
];
|
|
|
|
h5 = [
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
tables
|
|
|
|
];
|
|
|
|
persistence = [ numpy ];
|
|
|
|
preferences = [ configobj ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
|
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
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "apptools" ];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|