python3Packages.optuna: 0.17.1 -> 0.19.0
This commit is contained in:
parent
4e0ebea84a
commit
853ecd2571
@ -1,6 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, pytest
|
, pytest
|
||||||
, mock
|
, mock
|
||||||
, bokeh
|
, bokeh
|
||||||
@ -13,6 +13,7 @@
|
|||||||
, mxnet
|
, mxnet
|
||||||
, scikit-optimize
|
, scikit-optimize
|
||||||
, tensorflow
|
, tensorflow
|
||||||
|
, cma
|
||||||
, sqlalchemy
|
, sqlalchemy
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
@ -21,6 +22,7 @@
|
|||||||
, colorlog
|
, colorlog
|
||||||
, pandas
|
, pandas
|
||||||
, alembic
|
, alembic
|
||||||
|
, tqdm
|
||||||
, typing
|
, typing
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, isPy27
|
, isPy27
|
||||||
@ -31,9 +33,11 @@ buildPythonPackage rec {
|
|||||||
version = "0.19.0";
|
version = "0.19.0";
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "optuna";
|
||||||
sha256 = "cbcdc826915dd07f7df723bec0dd3edd5e61e54c40e7a8b023e19d4434eef602";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "179x2lsckpmkrkkdnvvbzky86g1ba882z677qwbayhsc835wbp0y";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
@ -49,6 +53,7 @@ buildPythonPackage rec {
|
|||||||
mxnet
|
mxnet
|
||||||
scikit-optimize
|
scikit-optimize
|
||||||
tensorflow
|
tensorflow
|
||||||
|
cma
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -60,16 +65,22 @@ buildPythonPackage rec {
|
|||||||
colorlog
|
colorlog
|
||||||
pandas
|
pandas
|
||||||
alembic
|
alembic
|
||||||
] ++ lib.optionals (pythonOlder "3.5") [ typing ];
|
tqdm
|
||||||
|
] ++ lib.optionals (pythonOlder "3.5") [
|
||||||
|
typing
|
||||||
|
];
|
||||||
|
|
||||||
configurePhase = if !(pythonOlder "3.5") then ''
|
configurePhase = if !(pythonOlder "3.5") then ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "'typing'" ""
|
--replace "'typing'," ""
|
||||||
'' else "";
|
'' else "";
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest --ignore tests/test_cli.py \
|
pytest --ignore tests/test_cli.py \
|
||||||
--ignore tests/integration_tests/test_chainermn.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; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user