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