Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 93 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394{ lib, buildPythonPackage, fetchFromGitHub, pytest, mock, bokeh, plotly, chainer, xgboost, mpi4py, lightgbm, keras, mxnet, scikit-optimize, tensorflow, cma, sqlalchemy, numpy, scipy, six, cliff, colorlog, pandas, alembic, tqdm, typing, pythonOlder, isPy27}:
buildPythonPackage rec { pname = "optuna"; version = "3.1.0"; disabled = isPy27;
src = fetchFromGitHub { owner = "optuna"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-dNS3LEWP/Ul1z60iZirFEX30Frc5ZFQLNTgUkT9vLNQ="; };
nativeCheckInputs = [ pytest mock bokeh plotly chainer xgboost mpi4py lightgbm keras mxnet scikit-optimize tensorflow cma ];
propagatedBuildInputs = [ sqlalchemy numpy scipy six cliff colorlog pandas alembic tqdm ] ++ lib.optionals (pythonOlder "3.5") [ typing ];
configurePhase = lib.optionalString (! pythonOlder "3.5") '' substituteInPlace setup.py \ --replace "'typing'," "" '';
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; { broken = true; # Dashboard broken, other build failures. description = "A hyperparameter optimization framework"; homepage = "https://optuna.org/"; license = licenses.mit; maintainers = [ maintainers.costrouc ]; };}