1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # dependencies 7 cloudpickle, 8 dill, 9 fasteners, 10 ipynbname, 11 ipywidgets, 12 notebook, 13 numpy, 14 odfpy, 15 plotly, 16 pyyaml, 17 qgrid, 18 scipy, 19 six, 20 tabulate, 21 tensorboard, 22 23 # tests 24 pytestCheckHook, 25 torch, 26}: 27 28buildPythonPackage rec { 29 pname = "experiment-utilities"; 30 version = "0.3.9"; 31 pyproject = true; 32 33 src = fetchFromGitHub { 34 owner = "ChrisReinke"; 35 repo = "exputils"; 36 tag = "v${version}"; 37 hash = "sha256-LQ1RjDcOL1SroNzWSfSS2OUSqsGgWOly7bLcbZ7e8LY="; 38 }; 39 40 pythonRelaxDeps = [ 41 "notebook" 42 "ipywidgets" 43 ]; 44 45 pythonRemoveDeps = [ 46 # Not available anymore in nixpkgs 47 "jupyter_contrib_nbextensions" 48 ]; 49 50 dependencies = [ 51 cloudpickle 52 dill 53 fasteners 54 ipynbname 55 ipywidgets 56 notebook 57 numpy 58 odfpy 59 plotly 60 pyyaml 61 qgrid 62 scipy 63 six 64 tabulate 65 tensorboard 66 ]; 67 68 nativeCheckInputs = [ 69 pytestCheckHook 70 torch 71 ]; 72 73 disabledTests = [ "test_experimentstarter" ]; 74 75 pythonImportsCheck = [ "exputils" ]; 76 77 meta = { 78 description = "Various tools to run scientific computer experiments"; 79 homepage = "https://gitlab.inria.fr/creinke/exputils"; 80 license = lib.licenses.gpl3Plus; 81 changelog = "https://github.com/ChrisReinke/exputils/releases/tag/v${version}"; 82 maintainers = with lib.maintainers; [ GaetanLepage ]; 83 }; 84}