python3Packages.spacy: 2.0.18 -> 2.1.3
Changes: https://github.com/explosion/spaCy/releases The largest change since 2.0.x is support for ELMo/BERT-like pretraining.
This commit is contained in:
parent
613e802f01
commit
52731eb4f6
@ -17,22 +17,24 @@
|
|||||||
, pathlib
|
, pathlib
|
||||||
, msgpack-python
|
, msgpack-python
|
||||||
, msgpack-numpy
|
, msgpack-numpy
|
||||||
|
, jsonschema
|
||||||
|
, blis
|
||||||
|
, wasabi
|
||||||
|
, srsly
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "spacy";
|
pname = "spacy";
|
||||||
version = "2.0.18";
|
version = "2.1.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0mybdms7c40jvk8ak180n65anjiyg4c8gkaqwkzicrd1mxq3ngqj";
|
sha256 = "01mmgfn7r288jklz6902xfb5dbih0h29s9p0na12gyj2c7gnvf5i";
|
||||||
};
|
};
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "regex==" "regex>=" \
|
--replace "plac<1.0.0,>=0.9.6" "plac>=0.9.6"
|
||||||
--replace "plac<1.0.0,>=0.9.6" "plac>=0.9.6" \
|
|
||||||
--replace "wheel>=0.32.0,<0.33.0" "wheel>=0.32.0"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -49,6 +51,10 @@ buildPythonPackage rec {
|
|||||||
ftfy
|
ftfy
|
||||||
msgpack-python
|
msgpack-python
|
||||||
msgpack-numpy
|
msgpack-numpy
|
||||||
|
jsonschema
|
||||||
|
blis
|
||||||
|
wasabi
|
||||||
|
srsly
|
||||||
] ++ lib.optional (pythonOlder "3.4") pathlib;
|
] ++ lib.optional (pythonOlder "3.4") pathlib;
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user