nltk-data: 5db857e -> cfe8291, cleanup
This commit is contained in:
parent
9a8a99de4d
commit
21df4b072b
@ -1,7 +1,7 @@
|
||||
{ lib, newScope, fetchFromGitHub, unzip, stdenvNoCC }:
|
||||
let
|
||||
base = {
|
||||
version = "unstable-2023-02-02";
|
||||
version = "0-unstable-2024-07-29";
|
||||
nativeBuildInputs = [ unzip ];
|
||||
dontBuild = true;
|
||||
meta = with lib; {
|
||||
@ -17,14 +17,14 @@ let
|
||||
src = fetchFromGitHub {
|
||||
owner = "nltk";
|
||||
repo = "nltk_data";
|
||||
rev = "5db857e6f7df11eabb5e5665836db9ec8df07e28";
|
||||
rev = "cfe82914f3c2d24363687f1db3b05e8b9f687e2b";
|
||||
inherit hash;
|
||||
sparseCheckout = [ "packages/${location}/${pname}.zip" ];
|
||||
};
|
||||
in
|
||||
stdenvNoCC.mkDerivation (base // {
|
||||
inherit pname src;
|
||||
version = base.version;
|
||||
inherit (base) version;
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
@ -38,24 +38,29 @@ let
|
||||
});
|
||||
in
|
||||
lib.makeScope newScope (self: {
|
||||
punkt = makeNltkDataPackage ({
|
||||
punkt = makeNltkDataPackage {
|
||||
pname = "punkt";
|
||||
location = "tokenizers";
|
||||
hash = "sha256-rMkgn3xzmSJNv8//kqbPF2Xq3Gf16lgA1Wx8FPYbaQo=";
|
||||
});
|
||||
averaged_perceptron_tagger = makeNltkDataPackage ({
|
||||
hash = "sha256-OzMkruoYbFKqzuimOXIpE5lhHz8tmSqOFoLT+fjdTVg=";
|
||||
};
|
||||
punkt_tab = makeNltkDataPackage {
|
||||
pname = "punkt_tab";
|
||||
location = "tokenizers";
|
||||
hash = "sha256-OzMkruoYbFKqzuimOXIpE5lhHz8tmSqOFoLT+fjdTVg=";
|
||||
};
|
||||
averaged_perceptron_tagger = makeNltkDataPackage {
|
||||
pname = "averaged_perceptron_tagger";
|
||||
location = "taggers";
|
||||
hash = "sha256-ilTs4HWPUoHxQb4kWEy3wJ6QsE/98+EQya44gtV2inw=";
|
||||
});
|
||||
snowball_data = makeNltkDataPackage ({
|
||||
hash = "sha256-tl3Cn2okhBkUtTXvAmFRx72Brez6iTGRdmFTwFmpk3M=";
|
||||
};
|
||||
snowball_data = makeNltkDataPackage {
|
||||
pname = "snowball_data";
|
||||
location = "stemmers";
|
||||
hash = "sha256-Y6LERPtaRbCtWmJCvMAd2xH02xdrevZBFNYvP9N4+3s=";
|
||||
});
|
||||
stopwords = makeNltkDataPackage ({
|
||||
hash = "sha256-mNefwOPVJGz9kXV3LV4DuV7FJpNir/Nwg4ujd0CogEk=";
|
||||
};
|
||||
stopwords = makeNltkDataPackage {
|
||||
pname = "stopwords";
|
||||
location = "corpora";
|
||||
hash = "sha256-Rj1jnt6IDEmBbSIHHueyEvPmdE4EZ6/bJ3qehniebbk=";
|
||||
});
|
||||
hash = "sha256-8lMjW5YI8h6dHJ/83HVY2OYGDyKPpgkUAKPISiAKqqk=";
|
||||
};
|
||||
})
|
@ -5793,7 +5793,7 @@ with pkgs;
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
nltk-data = callPackage ../tools/text/nltk_data { };
|
||||
nltk-data = callPackage ../tools/text/nltk-data { };
|
||||
|
||||
seaborn-data = callPackage ../tools/misc/seaborn-data { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user