nixpkgs/pkgs/development/python-modules/apptools/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, configobj
, fetchPypi
, importlib-resources
, pandas
, pytestCheckHook
, pythonOlder
, tables
, traits
, traitsui
2019-01-31 21:36:33 +00:00
}:
buildPythonPackage rec {
pname = "apptools";
version = "5.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
2019-01-31 21:36:33 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-xiaPXfzzCIvK92oAA+ULd3TQG1JY1xmbQQtIUv8iRuM=";
2019-01-31 21:36:33 +00:00
};
propagatedBuildInputs = [
configobj
traits
traitsui
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
2020-04-13 16:32:37 +00:00
];
nativeCheckInputs = [
2019-01-31 21:36:33 +00:00
tables
pandas
pytestCheckHook
2019-01-31 21:36:33 +00:00
];
preCheck = ''
export HOME=$TMP
'';
2019-01-31 21:36:33 +00:00
pythonImportsCheck = [
"apptools"
];
meta = with lib; {
description = "Set of packages that Enthought has found useful in creating a number of applications";
homepage = "https://github.com/enthought/apptools";
changelog = "https://github.com/enthought/apptools/releases/tag/${version}";
2019-01-31 21:36:33 +00:00
license = licenses.bsdOriginal;
maintainers = with maintainers; [ knedlsepp ];
2019-01-31 21:36:33 +00:00
};
}