Skip to content
/ nixpkgs Public
forked from NixOS/nixpkgs

Commit

Permalink
pythonPackages.spacy_models: fix evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Sep 18, 2017
1 parent fdb90ed commit b7e602a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkgs/development/python-modules/spacy/models.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ 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)

# 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
in makeModelSet (stdenv.lib.importJSON ./models.json)

0 comments on commit b7e602a

Please sign in to comment.