nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.nltk.dataDir: init

Add helper function to install NLTK data packages like `wordnet` and `punkt-tab`.
Should be used in conjunction with `makeWrapperArgs`,
e.g. `makeWrapperArgs = [ "--set" "NLTK_DATA" "${nltk.dataDir(d: [ d.wordnet d.punkt-tab ])}" ];`

+16
+15
pkgs/development/python-modules/nltk/data-dir.nix
··· 1 + { 2 + lib, 3 + pkgs, 4 + python3Packages, 5 + }: 6 + lib.makeOverridable ( 7 + { ... }@nltkDataPkgs: 8 + f: 9 + pkgs.symlinkJoin { 10 + inherit (python3Packages.nltk) meta; 11 + name = "nltk-data-dir"; 12 + 13 + paths = f nltkDataPkgs; 14 + } 15 + ) python3Packages.nltk.data
+1
pkgs/development/python-modules/nltk/default.nix
··· 41 41 42 42 passthru = { 43 43 data = pkgs.nltk-data; 44 + dataDir = pkgs.callPackage ./data-dir.nix { }; 44 45 }; 45 46 46 47 meta = with lib; {