python.spacy: 1.8.2 -> 2.0.9

This commit is contained in:
Augustin Borsu 2018-03-14 00:02:00 +01:00
parent 8187d93da2
commit 22fdb0bd9d

View File

@ -3,12 +3,11 @@
, buildPythonPackage , buildPythonPackage
, python , python
, fetchPypi , fetchPypi
, fetchFromGitHub , html5lib
, pytest , pytest
, cython , cython
, cymem
, preshed , preshed
, pathlib2 , ftfy
, numpy , numpy
, murmurhash , murmurhash
, plac , plac
@ -16,7 +15,6 @@
, ujson , ujson
, dill , dill
, requests , requests
, ftfy
, thinc , thinc
, pip , pip
, regex , regex
@ -24,32 +22,49 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "spacy"; pname = "spacy";
version = "1.8.2"; version = "2.0.9";
src = fetchFromGitHub { src = fetchPypi {
owner = "explosion"; inherit pname version;
repo = "spaCy"; sha256 = "1ihkhflhyz67bp73kfjqfrbcgdxi2msz5asbrh0pkk590c4vmms5";
rev = "v${version}";
sha256 = "0v3bmmar31a6968y4wl0lmgnc3829l2mnwd8s959m4pqw1y1w648";
}; };
prePatch = ''
substituteInPlace setup.py --replace \
"'html5lib==1.0b8'," \
"'html5lib',"
substituteInPlace setup.py --replace \
"'regex==2017.4.5'," \
"'regex',"
substituteInPlace setup.py --replace \
"'ftfy==2017.4.5'," \
"'ftfy',"
substituteInPlace setup.py --replace \
"'pathlib'," \
"\"pathlib; python_version<'3.4'\","
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
cython cython
cymem
pathlib2
preshed
numpy
murmurhash
plac
six
ujson
dill dill
requests html5lib
murmurhash
numpy
plac
preshed
regex regex
ftfy requests
six
thinc thinc
pytest ujson
pip ftfy
];
checkInputs = [
pytest
]; ];
doCheck = false; doCheck = false;