3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.spacy: add spacy_legacy dependency

This commit is contained in:
Matt Melling 2021-05-07 22:04:10 +01:00 committed by Jonathan Ringer
parent ff95da3ab5
commit 94698a5624
4 changed files with 32 additions and 1 deletions

View file

@ -22,7 +22,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ smart_open typer google-cloud-storage ];
postPatch = ''
substituteInPlace requirements.txt --replace "smart-open>=2.2.0,<4.0.0" "smart-open>=2.2.0"
substituteInPlace requirements.txt \
--replace "smart-open>=2.2.0,<4.0.0" "smart-open>=2.2.0"
'';
checkInputs = [ pytestCheckHook mock ];

View file

@ -16,6 +16,7 @@
, requests
, setuptools
, srsly
, spacy-legacy
, thinc
, wasabi
}:
@ -41,6 +42,7 @@ buildPythonPackage rec {
requests
setuptools
srsly
spacy-legacy
thinc
wasabi
] ++ lib.optional (pythonOlder "3.4") pathlib;

View file

@ -0,0 +1,26 @@
{ lib
, fetchPypi
, buildPythonPackage
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "spacy-legacy";
version = "3.0.5";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-Uy94rjFllSj622RTzd6UJaQmIniCw4gpeq/X57QcIpA=";
};
# checkInputs = [ pytestCheckHook spacy ];
doCheck = false;
pythonImportsCheck = [ "spacy_legacy" ];
meta = with lib; {
description = "A Path interface for local and cloud bucket storage";
homepage = "https://github.com/justindujardin/pathy";
license = licenses.asl20;
maintainers = with maintainers; [ melling ];
};
}

View file

@ -7613,6 +7613,8 @@ in {
spacy = callPackage ../development/python-modules/spacy { };
spacy-legacy = callPackage ../development/python-modules/spacy/legacy.nix { };
spacy_models = callPackage ../development/python-modules/spacy/models.nix { };
spake2 = callPackage ../development/python-modules/spake2 { };