Skip to content

Commit

Permalink
python.spacy: 1.8.2 -> 2.0.9
Browse files Browse the repository at this point in the history
(cherry picked from commit 22fdb0b)
  • Loading branch information
Augustin Borsu authored and Robert Schütz committed Mar 14, 2018
1 parent 6381f5a commit 52e6f6f
Showing 1 changed file with 35 additions and 20 deletions.
55 changes: 35 additions & 20 deletions pkgs/development/python-modules/spacy/default.nix
Expand Up @@ -3,53 +3,68 @@
, buildPythonPackage
, python
, fetchPypi
, fetchFromGitHub
, html5lib
, pytest
, cython
, cymem
, preshed
, pathlib2
, ftfy
, numpy
, murmurhash
, plac
, six
, ujson
, dill
, requests
, ftfy
, thinc
, pip
, regex
}:

buildPythonPackage rec {
pname = "spacy";
version = "1.8.2";
version = "2.0.9";

src = fetchFromGitHub {
owner = "explosion";
repo = "spaCy";
rev = "v${version}";
sha256 = "0v3bmmar31a6968y4wl0lmgnc3829l2mnwd8s959m4pqw1y1w648";
src = fetchPypi {
inherit pname version;
sha256 = "1ihkhflhyz67bp73kfjqfrbcgdxi2msz5asbrh0pkk590c4vmms5";
};

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 = [
cython
cymem
pathlib2
preshed
numpy
dill
html5lib
murmurhash
numpy
plac
preshed
regex
requests
six
thinc
ujson
dill
requests
regex
ftfy
thinc
pytest
pip
];

checkInputs = [
pytest
];

doCheck = false;
Expand Down

0 comments on commit 52e6f6f

Please sign in to comment.