1{ lib
2, buildPythonPackage
3, cloudpickle
4, dill
5, fasteners
6, fetchFromGitLab
7, qgrid
8, ipynbname
9, ipywidgets
10, odfpy
11, scipy
12, plotly
13, pytestCheckHook
14, pyyaml
15, tabulate
16, tensorboard
17, torch
18}:
19
20buildPythonPackage rec {
21 pname = "experiment-utilities";
22 version = "0.3.6";
23
24 src = fetchFromGitLab {
25 owner = "creinke";
26 repo = "exputils";
27 domain = "gitlab.inria.fr";
28 rev = "refs/tags/version_${version}";
29 hash = "sha256-jo0CBSpUc/F1lJ2vagocngDM1Lopw5/AJnt1QwCunA8=";
30 };
31
32 # This dependency constraint (<=7.6.5) was due to a bug in qgrid that has been patched in its
33 # owned derivation
34 postPatch = ''
35 substituteInPlace setup.cfg \
36 --replace "ipywidgets >= 7.5.1,<= 7.6.5" "ipywidgets >= 7.5.1"
37 '';
38
39 propagatedBuildInputs = [
40 cloudpickle
41 dill
42 fasteners
43 ipynbname
44 ipywidgets
45 odfpy
46 plotly
47 pyyaml
48 qgrid
49 scipy
50 tabulate
51 tensorboard
52 ];
53
54 nativeCheckInputs = [
55 pytestCheckHook
56 torch
57 ];
58
59 disabledTests = [
60 "test_experimentstarter"
61 ];
62
63 pythonImportsCheck = [ "exputils" ];
64
65 meta = with lib; {
66 description = "Various tools to run scientific computer experiments.";
67 homepage = "https://gitlab.inria.fr/creinke/exputils";
68 license = licenses.gpl3Plus;
69 maintainers = with maintainers; [ GaetanLepage ];
70 };
71}