python3Packages.spacy: add spacy_legacy dependency
This commit is contained in:
parent
ff95da3ab5
commit
94698a5624
@ -22,7 +22,8 @@ buildPythonPackage rec {
|
|||||||
propagatedBuildInputs = [ smart_open typer google-cloud-storage ];
|
propagatedBuildInputs = [ smart_open typer google-cloud-storage ];
|
||||||
|
|
||||||
postPatch = ''
|
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 ];
|
checkInputs = [ pytestCheckHook mock ];
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
, requests
|
, requests
|
||||||
, setuptools
|
, setuptools
|
||||||
, srsly
|
, srsly
|
||||||
|
, spacy-legacy
|
||||||
, thinc
|
, thinc
|
||||||
, wasabi
|
, wasabi
|
||||||
}:
|
}:
|
||||||
@ -41,6 +42,7 @@ buildPythonPackage rec {
|
|||||||
requests
|
requests
|
||||||
setuptools
|
setuptools
|
||||||
srsly
|
srsly
|
||||||
|
spacy-legacy
|
||||||
thinc
|
thinc
|
||||||
wasabi
|
wasabi
|
||||||
] ++ lib.optional (pythonOlder "3.4") pathlib;
|
] ++ lib.optional (pythonOlder "3.4") pathlib;
|
||||||
|
26
pkgs/development/python-modules/spacy/legacy.nix
Normal file
26
pkgs/development/python-modules/spacy/legacy.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -7613,6 +7613,8 @@ in {
|
|||||||
|
|
||||||
spacy = callPackage ../development/python-modules/spacy { };
|
spacy = callPackage ../development/python-modules/spacy { };
|
||||||
|
|
||||||
|
spacy-legacy = callPackage ../development/python-modules/spacy/legacy.nix { };
|
||||||
|
|
||||||
spacy_models = callPackage ../development/python-modules/spacy/models.nix { };
|
spacy_models = callPackage ../development/python-modules/spacy/models.nix { };
|
||||||
|
|
||||||
spake2 = callPackage ../development/python-modules/spake2 { };
|
spake2 = callPackage ../development/python-modules/spake2 { };
|
||||||
|
Loading…
Reference in New Issue
Block a user