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