2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cloudpickle
|
|
|
|
, dill
|
|
|
|
, fasteners
|
|
|
|
, fetchFromGitLab
|
|
|
|
, qgrid
|
2023-08-10 07:59:29 +00:00
|
|
|
, ipynbname
|
2023-07-15 17:15:38 +00:00
|
|
|
, ipywidgets
|
|
|
|
, odfpy
|
|
|
|
, scipy
|
|
|
|
, plotly
|
|
|
|
, pytestCheckHook
|
|
|
|
, pyyaml
|
|
|
|
, tabulate
|
|
|
|
, tensorboard
|
|
|
|
, torch
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "experiment-utilities";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.3.5";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "creinke";
|
|
|
|
repo = "exputils";
|
|
|
|
domain = "gitlab.inria.fr";
|
|
|
|
rev = "refs/tags/version_${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-y+I/TpEC1alP3145ByM6H//lZl2FrpLT/70lzn04P6w=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# This dependency constraint (<=7.6.5) was due to a bug in qgrid that has been patched in its
|
|
|
|
# owned derivation
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "ipywidgets >= 7.5.1,<= 7.6.5" "ipywidgets >= 7.5.1"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cloudpickle
|
|
|
|
dill
|
|
|
|
fasteners
|
2023-08-10 07:59:29 +00:00
|
|
|
ipynbname
|
2023-07-15 17:15:38 +00:00
|
|
|
ipywidgets
|
|
|
|
odfpy
|
|
|
|
plotly
|
|
|
|
pyyaml
|
|
|
|
qgrid
|
|
|
|
scipy
|
|
|
|
tabulate
|
|
|
|
tensorboard
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
torch
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_experimentstarter"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "exputils" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Various tools to run scientific computer experiments.";
|
|
|
|
homepage = "https://gitlab.inria.fr/creinke/exputils";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|