Merge pull request #242842 from jboynyc/spacy-lookups-data
This commit is contained in:
commit
e1d36dfcb0
33
pkgs/development/python-modules/spacy/lookups-data.nix
Normal file
33
pkgs/development/python-modules/spacy/lookups-data.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, setuptools
|
||||||
|
, spacy
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "spacy-lookups-data";
|
||||||
|
version = "1.0.3";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
pname = "spacy_lookups_data";
|
||||||
|
inherit version;
|
||||||
|
hash = "sha256-q2hlVI+4ZtR5CQ4xEIp+Je0ZKhH8sJiW5xFjKM3FK+E=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
spacy
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "spacy_lookups_data" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Additional lookup tables and data resources for spaCy";
|
||||||
|
homepage = "https://pypi.org/project/spacy-lookups-data";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ jboy ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -11709,6 +11709,8 @@ self: super: with self; {
|
||||||
|
|
||||||
spacy-loggers = callPackage ../development/python-modules/spacy-loggers { };
|
spacy-loggers = callPackage ../development/python-modules/spacy-loggers { };
|
||||||
|
|
||||||
|
spacy-lookups-data = callPackage ../development/python-modules/spacy/lookups-data.nix { };
|
||||||
|
|
||||||
spacy_models = callPackage ../development/python-modules/spacy/models.nix {
|
spacy_models = callPackage ../development/python-modules/spacy/models.nix {
|
||||||
inherit (pkgs) jq;
|
inherit (pkgs) jq;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue