depot/third_party/nixpkgs/pkgs/development/python-modules/experiment-utilities/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

75 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, cloudpickle
, dill
, fasteners
, fetchFromGitLab
, qgrid
, ipynbname
, ipywidgets
, odfpy
, scipy
, plotly
, pytestCheckHook
, pyyaml
, tabulate
, tensorboard
, torch
}:
buildPythonPackage rec {
pname = "experiment-utilities";
version = "0.3.4";
src = fetchFromGitLab {
owner = "creinke";
repo = "exputils";
domain = "gitlab.inria.fr";
rev = "refs/tags/version_${version}";
hash = "sha256-zjmmLUpGjUhpw2+stLJE6cImesnBSvrcid5bHMftX/Q=";
};
patches = [
./unvendor-ipynbname.patch
];
# 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
ipynbname
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 ];
};
}