diff options
author | Daniƫl de Kok <me@github.danieldk.eu> | 2018-09-03 21:59:36 +0200 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-09-03 21:59:36 +0200 |
commit | e33be2ab56c4398e335cd910ce43a7ae377be547 (patch) | |
tree | 9dbd57f4af69bf30e41e59084ba0320dadb0292f /pkgs/development/python-modules/keras | |
parent | 9889c0f2417fe38016ccf8cf126e5b2a9f561f91 (diff) |
Keras: fix build by updating expected dependencies. (#45992)
Keras expects keras_preprocessing 1.0.2 and 1.0.4. 1.0.3 and 1.0.5 are respectively in nixpkgs. ZHF #45960
Diffstat (limited to 'pkgs/development/python-modules/keras')
-rw-r--r-- | pkgs/development/python-modules/keras/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/keras/default.nix b/pkgs/development/python-modules/keras/default.nix index ea699c9c04a97..43f3bd935d249 100644 --- a/pkgs/development/python-modules/keras/default.nix +++ b/pkgs/development/python-modules/keras/default.nix @@ -25,6 +25,14 @@ buildPythonPackage rec { keras-applications keras-preprocessing ]; + # Keras 2.2.2 expects older versions of keras_applications + # and keras_preprocessing. These substitutions can be removed + # for for the next Keras release. + postPatch = '' + substituteInPlace setup.py --replace "keras_applications==1.0.4" "keras_applications==1.0.5" + substituteInPlace setup.py --replace "keras_preprocessing==1.0.2" "keras_preprocessing==1.0.3" + ''; + # Couldn't get tests working doCheck = false; |