1{ stdenv
2, pkgs
3, buildPythonPackage
4, python
5, fetchPypi
6, fetchFromGitHub
7, pytest
8, cython
9, cymem
10, preshed
11, pathlib2
12, numpy
13, murmurhash
14, plac
15, six
16, ujson
17, dill
18, requests
19, ftfy
20, thinc
21, pip
22}:
23let
24 enableDebugging = true;
25 regexLocked = buildPythonPackage rec {
26 name = "${pname}-${version}";
27 pname = "regex";
28 version = "2017.04.05";
29
30 src = fetchPypi {
31 inherit pname version;
32 sha256 = "0c95gf3jzz8mv52lkgq0h7sbasjwvdhghm4s0phmy5k9sr78f4fq";
33 };
34 };
35in buildPythonPackage rec {
36 name = "spacy-${version}";
37 version = "1.8.2";
38
39 src = fetchFromGitHub {
40 owner = "explosion";
41 repo = "spaCy";
42 rev = "v${version}";
43 sha256 = "0v3bmmar31a6968y4wl0lmgnc3829l2mnwd8s959m4pqw1y1w648";
44 };
45
46 propagatedBuildInputs = [
47 cython
48 cymem
49 pathlib2
50 preshed
51 numpy
52 murmurhash
53 plac
54 six
55 ujson
56 dill
57 requests
58 regexLocked
59 ftfy
60 thinc
61 pytest
62 pip
63 ];
64
65 doCheck = false;
66 # checkPhase = ''
67 # ${python.interpreter} -m pytest spacy/tests --vectors --models --slow
68 # '';
69
70 meta = with stdenv.lib; {
71 description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython";
72 homepage = https://github.com/explosion/spaCy;
73 license = licenses.mit;
74 maintainers = with maintainers; [ sdll ];
75 };
76}