Merge pull request #52187 from danieldk/spacy-2.0.18

python3Packages.spacy: 2.0.16 -> 2.0.18
This commit is contained in:
Robert Schütz 2018-12-15 11:34:47 +01:00 committed by GitHub
commit b1519e64fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 17 deletions

View File

@ -2,14 +2,12 @@
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pythonOlder , pythonOlder
, html5lib
, pytest , pytest
, preshed , preshed
, ftfy , ftfy
, numpy , numpy
, murmurhash , murmurhash
, plac , plac
, six
, ujson , ujson
, dill , dill
, requests , requests
@ -23,19 +21,17 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "spacy"; pname = "spacy";
version = "2.0.16"; version = "2.0.18";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "1ghgbv819ff4777904p1kzayq1dj34i7853anvg859sak59r7pj1"; sha256 = "0mybdms7c40jvk8ak180n65anjiyg4c8gkaqwkzicrd1mxq3ngqj";
}; };
prePatch = '' prePatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "regex==" "regex>=" \ --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 "thinc>=6.12.0,<6.13.0" "thinc>=6.12.0" \
--replace "wheel>=0.32.0,<0.33.0" "wheel>=0.31.0"
''; '';
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -45,8 +41,6 @@ buildPythonPackage rec {
preshed preshed
thinc thinc
plac plac
six
html5lib
ujson ujson
dill dill
requests requests

View File

@ -19,18 +19,17 @@
, plac , plac
, six , six
, mock , mock
, termcolor
, wrapt , wrapt
, dill , dill
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "thinc"; pname = "thinc";
version = "6.12.0"; version = "6.12.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0lfdf08v7rrj9b29z2vf8isaqa0zh16acw9im8chkqsh8bay4ykm"; sha256 = "1kkp8b3xcs3yn3ia5sxrh086c9xv27s2khdxd17abdypxxa99ich";
}; };
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
@ -45,20 +44,18 @@ buildPythonPackage rec {
preshed preshed
numpy numpy
murmurhash murmurhash
pytest
hypothesis
tqdm tqdm
cytoolz cytoolz
plac plac
six six
mock
termcolor
wrapt wrapt
dill dill
] ++ lib.optional (pythonOlder "3.4") pathlib; ] ++ lib.optional (pythonOlder "3.4") pathlib;
checkInputs = [ checkInputs = [
hypothesis
mock
pytest pytest
]; ];
@ -66,7 +63,7 @@ buildPythonPackage rec {
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "pathlib==1.0.1" "pathlib>=1.0.0,<2.0.0" \ --replace "pathlib==1.0.1" "pathlib>=1.0.0,<2.0.0" \
--replace "plac>=0.9.6,<1.0.0" "plac>=0.9.6" \ --replace "plac>=0.9.6,<1.0.0" "plac>=0.9.6" \
--replace "wheel>=0.32.0,<0.33.0" "wheel>=0.31.0" --replace "msgpack-numpy<0.4.4" "msgpack-numpy"
''; '';
# Cannot find cython modules. # Cannot find cython modules.