git.iko.soy/typeable/nixpkgs
on master help sign in
python.spacy: 1.8.2 -> 2.0.9
commit22fdb0bd9df0e9e9c0485fcb7fdac92f776aa165 authorAugustin Borsu <a.borsu@gmail.com> dateWed 14 Mar 2018, 00:02 (9 years ago) parent8187d93
1 file changed+35−20
pkgs/development/python-modules/spacy/default.nix+35−20
pkgs/development/python-modules/spacy/default.nix+35−20
@@ -3,12 +3,11 @@
33, buildPythonPackage
44, python
55, fetchPypi
6−, fetchFromGitHub
6+, html5lib
77, pytest
88, cython
9−, cymem
109, preshed
11−, pathlib2
10+, ftfy
1211, numpy
1312, murmurhash
1413, plac
@@ -16,7 +15,6 @@
1615, ujson
1716, dill
1817, requests
19−, ftfy
2018, thinc
2119, pip
2220, regex
@@ -24,32 +22,49 @@
2422
2523buildPythonPackage rec {
2624 pname = "spacy";
27− version = "1.8.2";
25+ version = "2.0.9";
2826
29− src = fetchFromGitHub {
30− owner = "explosion";
31− repo = "spaCy";
32− rev = "v${version}";
33− sha256 = "0v3bmmar31a6968y4wl0lmgnc3829l2mnwd8s959m4pqw1y1w648";
27+ src = fetchPypi {
28+ inherit pname version;
29+ sha256 = "1ihkhflhyz67bp73kfjqfrbcgdxi2msz5asbrh0pkk590c4vmms5";
3430 };
3531
32+ prePatch = ''
33+ substituteInPlace setup.py --replace \
34+ "'html5lib==1.0b8'," \
35+ "'html5lib',"
36+
37+ substituteInPlace setup.py --replace \
38+ "'regex==2017.4.5'," \
39+ "'regex',"
40+
41+ substituteInPlace setup.py --replace \
42+ "'ftfy==2017.4.5'," \
43+ "'ftfy',"
44+
45+ substituteInPlace setup.py --replace \
46+ "'pathlib'," \
47+ "\"pathlib; python_version<'3.4'\","
48+ '';
49+
3650 propagatedBuildInputs = [
3751 cython
38− cymem
39− pathlib2
40− preshed
41− numpy
52+ dill
53+ html5lib
4254 murmurhash
55+ numpy
4356 plac
57+ preshed
58+ regex
59+ requests
4460 six
61+ thinc
4562 ujson
46− dill
47− requests
48− regex
4963 ftfy
50− thinc
51− pytest
52− pip
64+ ];
65+
66+ checkInputs = [
67+ pytest
5368 ];
5469
5570 doCheck = false;