summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/experiment-utilities/default.nix
blob: f2f40fccad27068d6dbae420b11903c2fca4fc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # dependencies
  cloudpickle,
  dill,
  fasteners,
  ipynbname,
  ipywidgets,
  notebook,
  numpy,
  odfpy,
  plotly,
  pyyaml,
  qgrid,
  scipy,
  six,
  tabulate,
  tensorboard,

  # tests
  pytestCheckHook,
  torch,
}:

buildPythonPackage rec {
  pname = "experiment-utilities";
  version = "0.3.9";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ChrisReinke";
    repo = "exputils";
    tag = "v${version}";
    hash = "sha256-LQ1RjDcOL1SroNzWSfSS2OUSqsGgWOly7bLcbZ7e8LY=";
  };

  pythonRelaxDeps = [
    "notebook"
    "ipywidgets"
  ];

  pythonRemoveDeps = [
    # Not available anymore in nixpkgs
    "jupyter_contrib_nbextensions"
  ];

  dependencies = [
    cloudpickle
    dill
    fasteners
    ipynbname
    ipywidgets
    notebook
    numpy
    odfpy
    plotly
    pyyaml
    qgrid
    scipy
    six
    tabulate
    tensorboard
  ];

  nativeCheckInputs = [
    pytestCheckHook
    torch
  ];

  disabledTests = [ "test_experimentstarter" ];

  pythonImportsCheck = [ "exputils" ];

  meta = {
    description = "Various tools to run scientific computer experiments";
    homepage = "https://gitlab.inria.fr/creinke/exputils";
    license = lib.licenses.gpl3Plus;
    changelog = "https://github.com/ChrisReinke/exputils/releases/tag/v${version}";
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}