python3Packages.optuna: 0.17.1 -> 0.19.0

authored by

Chris Ostrouchov and committed by
Frederik Rietdijk
853ecd25 4e0ebea8

+18 -7
+18 -7
pkgs/development/python-modules/optuna/default.nix
··· 1 { lib 2 , buildPythonPackage 3 - , fetchPypi 4 , pytest 5 , mock 6 , bokeh ··· 13 , mxnet 14 , scikit-optimize 15 , tensorflow 16 , sqlalchemy 17 , numpy 18 , scipy ··· 21 , colorlog 22 , pandas 23 , alembic 24 , typing 25 , pythonOlder 26 , isPy27 ··· 31 version = "0.19.0"; 32 disabled = isPy27; 33 34 - src = fetchPypi { 35 - inherit pname version; 36 - sha256 = "cbcdc826915dd07f7df723bec0dd3edd5e61e54c40e7a8b023e19d4434eef602"; 37 }; 38 39 checkInputs = [ ··· 49 mxnet 50 scikit-optimize 51 tensorflow 52 ]; 53 54 propagatedBuildInputs = [ ··· 60 colorlog 61 pandas 62 alembic 63 - ] ++ lib.optionals (pythonOlder "3.5") [ typing ]; 64 65 configurePhase = if !(pythonOlder "3.5") then '' 66 substituteInPlace setup.py \ 67 - --replace "'typing'" "" 68 '' else ""; 69 70 checkPhase = '' 71 pytest --ignore tests/test_cli.py \ 72 - --ignore tests/integration_tests/test_chainermn.py 73 ''; 74 75 meta = with lib; {
··· 1 { lib 2 , buildPythonPackage 3 + , fetchFromGitHub 4 , pytest 5 , mock 6 , bokeh ··· 13 , mxnet 14 , scikit-optimize 15 , tensorflow 16 + , cma 17 , sqlalchemy 18 , numpy 19 , scipy ··· 22 , colorlog 23 , pandas 24 , alembic 25 + , tqdm 26 , typing 27 , pythonOlder 28 , isPy27 ··· 33 version = "0.19.0"; 34 disabled = isPy27; 35 36 + src = fetchFromGitHub { 37 + owner = "optuna"; 38 + repo = pname; 39 + rev = "v${version}"; 40 + sha256 = "179x2lsckpmkrkkdnvvbzky86g1ba882z677qwbayhsc835wbp0y"; 41 }; 42 43 checkInputs = [ ··· 53 mxnet 54 scikit-optimize 55 tensorflow 56 + cma 57 ]; 58 59 propagatedBuildInputs = [ ··· 65 colorlog 66 pandas 67 alembic 68 + tqdm 69 + ] ++ lib.optionals (pythonOlder "3.5") [ 70 + typing 71 + ]; 72 73 configurePhase = if !(pythonOlder "3.5") then '' 74 substituteInPlace setup.py \ 75 + --replace "'typing'," "" 76 '' else ""; 77 78 checkPhase = '' 79 pytest --ignore tests/test_cli.py \ 80 + --ignore tests/integration_tests/test_chainermn.py \ 81 + --ignore tests/integration_tests/test_pytorch_lightning.py \ 82 + --ignore tests/integration_tests/test_pytorch_ignite.py \ 83 + --ignore tests/integration_tests/test_fastai.py 84 ''; 85 86 meta = with lib; {