From 6cfed19f032091371b8c3f0b3c754d07658c6a55 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 17 Dec 2017 15:53:09 +0000 Subject: gnu: Add python-spacy. * gnu/packages/python.scm (python-spacy): New variable. --- gnu/packages/python.scm | 51 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 7cb714c7ab..fff871d92d 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2412,6 +2412,57 @@ reStructuredText.") (define-public python2-pygments (package-with-python2 python-pygments)) +(define-public python-spacy + (package + (name "python-spacy") + (version "2.0.0a17") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/explosion/spaCy/archive/v" version ".tar.gz")) + (sha256 + (base32 + "1dq389f7qpni9lw5vksiizb542012ql6g7v1wk7xlg6jc2yxl2la")))) + ;; (source + ;; (origin + ;; (method url-fetch) + ;; (uri (pypi-uri "spacy" version)) + ;; (sha256 + ;; (base32 + ;; "19mhg40zkpc153rsn0y2p8hzxfk6hv6cr7ds6a08mmazr8nxdmc9")))) + (build-system python-build-system) + (arguments + '(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-before 'install 'patch + (lambda _ + (substitute* "spacy/util.py" + (("from_disk\\(model\\_path") + "from_disk(model_path, disable=(\"meta.json\",)"))))))) + (inputs + `(("python-cython" ,python-cython))) + (propagated-inputs + `(("python-ujson" ,python-ujson) + ("python-numpy" ,python-numpy) + ("python-regex" ,python-regex) + ("python-requests" ,python-requests) + ("python-cymem" ,python-cymem) + ("python-preshed" ,python-preshed) + ("python-murmurhash" ,python-murmurhash) + ("python-thinc" ,python-thinc) + ("python-plac" ,python-plac))) + (home-page "https://spacy.io") + (synopsis + "Industrial-strength Natural Language Processing (NLP) with Python and Cython") + (description + "Industrial-strength Natural Language Processing (NLP) with Python and Cython") + (license license:expat))) + +(define-public python2-spacy + (package-with-python2 python-spacy)) + (define-public python-sphinxcontrib-websupport (package (name "python-sphinxcontrib-websupport") -- cgit v1.2.3