1{
2 lib,
3 buildPythonPackage,
4 configobj,
5 fetchPypi,
6 importlib-resources,
7 pandas,
8 pytestCheckHook,
9 pythonOlder,
10 tables,
11 traits,
12 traitsui,
13}:
14
15buildPythonPackage rec {
16 pname = "apptools";
17 version = "5.2.1";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-xiaPXfzzCIvK92oAA+ULd3TQG1JY1xmbQQtIUv8iRuM=";
25 };
26
27 propagatedBuildInputs = [
28 configobj
29 traits
30 traitsui
31 ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
32
33 nativeCheckInputs = [
34 tables
35 pandas
36 pytestCheckHook
37 ];
38
39 preCheck = ''
40 export HOME=$TMP
41 '';
42
43 pythonImportsCheck = [ "apptools" ];
44
45 meta = with lib; {
46 description = "Set of packages that Enthought has found useful in creating a number of applications";
47 homepage = "https://github.com/enthought/apptools";
48 changelog = "https://github.com/enthought/apptools/releases/tag/${version}";
49 license = licenses.bsdOriginal;
50 maintainers = with maintainers; [ knedlsepp ];
51 };
52}