Merge pull request #242842 from jboynyc/spacy-lookups-data

This commit is contained in:
Janik 2023-07-18 15:06:01 +02:00 committed by GitHub
commit e1d36dfcb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View 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 ];
};
}

View file

@ -11709,6 +11709,8 @@ self: super: with self; {
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 {
inherit (pkgs) jq;
};