2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, bokeh
|
|
|
|
, plotly
|
|
|
|
, chainer
|
|
|
|
, xgboost
|
|
|
|
, mpi4py
|
|
|
|
, lightgbm
|
2021-12-19 01:06:50 +00:00
|
|
|
, keras
|
2020-04-24 23:36:52 +00:00
|
|
|
, mxnet
|
|
|
|
, scikit-optimize
|
|
|
|
, tensorflow
|
|
|
|
, cma
|
|
|
|
, sqlalchemy
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, six
|
|
|
|
, cliff
|
|
|
|
, colorlog
|
|
|
|
, pandas
|
|
|
|
, alembic
|
|
|
|
, tqdm
|
|
|
|
, typing
|
|
|
|
, pythonOlder
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "optuna";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "3.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "optuna";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-TfAWL81a7GIePkPm+2uXinBP5jwnhWCZPp5GJjXOC6g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
bokeh
|
|
|
|
plotly
|
|
|
|
chainer
|
|
|
|
xgboost
|
|
|
|
mpi4py
|
|
|
|
lightgbm
|
2021-12-19 01:06:50 +00:00
|
|
|
keras
|
2020-04-24 23:36:52 +00:00
|
|
|
mxnet
|
|
|
|
scikit-optimize
|
|
|
|
tensorflow
|
|
|
|
cma
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
sqlalchemy
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
six
|
|
|
|
cliff
|
|
|
|
colorlog
|
|
|
|
pandas
|
|
|
|
alembic
|
|
|
|
tqdm
|
|
|
|
] ++ lib.optionals (pythonOlder "3.5") [
|
|
|
|
typing
|
|
|
|
];
|
|
|
|
|
|
|
|
configurePhase = if !(pythonOlder "3.5") then ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "'typing'," ""
|
|
|
|
'' else "";
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --ignore tests/test_cli.py \
|
|
|
|
--ignore tests/integration_tests/test_chainermn.py \
|
|
|
|
--ignore tests/integration_tests/test_pytorch_lightning.py \
|
|
|
|
--ignore tests/integration_tests/test_pytorch_ignite.py \
|
|
|
|
--ignore tests/integration_tests/test_fastai.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
broken = true; # Dashboard broken, other build failures.
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A hyperparameter optimization framework";
|
|
|
|
homepage = "https://optuna.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|