nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 configobj,
5 fetchFromGitHub,
6 numpy,
7 pandas,
8 pyface,
9 pytestCheckHook,
10 setuptools,
11 tables,
12 traits,
13 traitsui,
14}:
15
16buildPythonPackage rec {
17 pname = "apptools";
18 version = "5.3.1";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "enthought";
23 repo = "apptools";
24 tag = version;
25 hash = "sha256-46QiVLWdlM89GMCIqVNuNGJjT2nwWJ1c6DyyvEPcceQ=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [ traits ];
31
32 optional-dependencies = {
33 gui = [
34 pyface
35 traitsui
36 ];
37 h5 = [
38 numpy
39 pandas
40 tables
41 ];
42 persistence = [ numpy ];
43 preferences = [ configobj ];
44 };
45
46 nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies;
47
48 preCheck = ''
49 export HOME=$TMP
50 '';
51
52 pythonImportsCheck = [ "apptools" ];
53
54 meta = {
55 description = "Set of packages that Enthought has found useful in creating a number of applications";
56 homepage = "https://github.com/enthought/apptools";
57 changelog = "https://github.com/enthought/apptools/releases/tag/${src.tag}";
58 license = lib.licenses.bsdOriginal;
59 maintainers = [ ];
60 };
61}