Skip to content

Commit

Permalink
Keras: fix build by updating expected dependencies.
Browse files Browse the repository at this point in the history
Keras expects keras_preprocessing 1.0.2 and 1.0.4. 1.0.3 and 1.0.5
are respectively in nixpkgs.

ZHF NixOS#45960
  • Loading branch information
danieldk committed Sep 3, 2018
1 parent 252c0d4 commit 06cc85e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/python-modules/keras/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 06cc85e

Please sign in to comment.