summary refs log tree commit diff
path: root/pkgs/development/python-modules/spacy
diff options
context:
space:
mode:
authorSasha Delly <shura.sdll@gmail.com>2017-05-15 10:09:39 +0000
committerFrederik Rietdijk <fridh@fridh.nl>2017-08-13 22:41:30 +0200
commit96dc15f2c9790029cfd7d4b19c35d43a0e9e4583 (patch)
tree5534a0329f91f8d5e970c63a2c7872797dddfcc6 /pkgs/development/python-modules/spacy
parentea418720d79fc2115e7c95474e77182b6f4e6924 (diff)
downloadnixlib-96dc15f2c9790029cfd7d4b19c35d43a0e9e4583.tar
nixlib-96dc15f2c9790029cfd7d4b19c35d43a0e9e4583.tar.gz
nixlib-96dc15f2c9790029cfd7d4b19c35d43a0e9e4583.tar.bz2
nixlib-96dc15f2c9790029cfd7d4b19c35d43a0e9e4583.tar.lz
nixlib-96dc15f2c9790029cfd7d4b19c35d43a0e9e4583.tar.xz
nixlib-96dc15f2c9790029cfd7d4b19c35d43a0e9e4583.tar.zst
nixlib-96dc15f2c9790029cfd7d4b19c35d43a0e9e4583.zip
spacy: init at 1.8.2
Diffstat (limited to 'pkgs/development/python-modules/spacy')
-rw-r--r--pkgs/development/python-modules/spacy/default.nix76
1 files changed, 76 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix
new file mode 100644
index 000000000000..452f3f1d9234
--- /dev/null
+++ b/pkgs/development/python-modules/spacy/default.nix
@@ -0,0 +1,76 @@
+{ stdenv
+, pkgs
+, buildPythonPackage
+, python
+, fetchPypi
+, fetchFromGitHub
+, pytest 
+, cython
+, cymem
+, preshed
+, pathlib2
+, numpy
+, murmurhash
+, plac
+, six
+, ujson
+, dill
+, requests
+, ftfy
+, thinc
+, pip
+}:
+let
+  enableDebugging = true;
+  regexLocked = buildPythonPackage rec {
+    name = "${pname}-${version}";
+    pname = "regex";
+    version = "2017.04.05";
+
+    src = fetchPypi {
+      inherit pname version;      
+      sha256 = "0c95gf3jzz8mv52lkgq0h7sbasjwvdhghm4s0phmy5k9sr78f4fq";
+    };
+  };
+in buildPythonPackage rec {
+  name = "spacy-${version}";
+  version = "1.8.2";
+
+  src = fetchFromGitHub {
+    owner = "explosion";
+    repo = "spaCy";
+    rev = "v${version}";
+    sha256 = "0v3bmmar31a6968y4wl0lmgnc3829l2mnwd8s959m4pqw1y1w648";    
+  };  
+
+  propagatedBuildInputs = [
+   cython
+   cymem
+   pathlib2
+   preshed
+   numpy
+   murmurhash
+   plac
+   six
+   ujson
+   dill
+   requests
+   regexLocked
+   ftfy
+   thinc
+   pytest
+   pip
+  ];
+
+  doCheck = false;
+  # checkPhase = ''
+  #   ${python.interpreter} -m pytest spacy/tests --vectors --models --slow
+  # '';  
+  
+  meta = with stdenv.lib; {
+    description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython";
+    homepage = https://github.com/explosion/spaCy;
+    license = licenses.mit;
+    maintainers = with maintainers; [ sdll ];
+    };
+}