python.pkgs.spacy_models: fix eval

This commit is contained in:
Frederik Rietdijk 2017-09-16 12:21:20 +02:00
parent 2d3886262e
commit 4f8ad9f7eb
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ let
};
};
makeModelSet = models: with pkgs.lib; listToAttrs (map (m: nameValuePair m.pname (buildModelPackage m)) models);
makeModelSet = models: with stdenv.lib; listToAttrs (map (m: nameValuePair m.pname (buildModelPackage m)) models);
in makeModelSet (pkgs.lib.importJSON ./models.json)
in makeModelSet (stdenv.lib.importJSON ./models.json)
# cat models.json | jq -r '.[] | @uri "https://github.com/explosion/spacy-models/releases/download/\(.pname)-\(.version)/\(.pname)-\(.version).tar.gz"' | xargs -n1 nix-prefetch-url