2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cloudpickle,
|
|
|
|
dill,
|
|
|
|
fasteners,
|
|
|
|
fetchFromGitLab,
|
|
|
|
qgrid,
|
|
|
|
ipynbname,
|
|
|
|
ipywidgets,
|
|
|
|
odfpy,
|
|
|
|
scipy,
|
|
|
|
plotly,
|
|
|
|
pytestCheckHook,
|
|
|
|
pyyaml,
|
|
|
|
tabulate,
|
|
|
|
tensorboard,
|
|
|
|
torch,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "experiment-utilities";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.3.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "creinke";
|
|
|
|
repo = "exputils";
|
|
|
|
domain = "gitlab.inria.fr";
|
|
|
|
rev = "refs/tags/version_${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-jo0CBSpUc/F1lJ2vagocngDM1Lopw5/AJnt1QwCunA8=";
|
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
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTests = [ "test_experimentstarter" ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "exputils" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Various tools to run scientific computer experiments";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://gitlab.inria.fr/creinke/exputils";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|