at 22.05-pre 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, callPackage 4, fetchPypi 5, pythonOlder 6, pytest 7, blis 8, catalogue 9, cymem 10, jinja2 11, jsonschema 12, murmurhash 13, numpy 14, preshed 15, requests 16, setuptools 17, srsly 18, spacy-legacy 19, thinc 20, typer 21, wasabi 22, packaging 23, pathy 24, pydantic 25, python 26, tqdm 27, typing-extensions 28}: 29 30buildPythonPackage rec { 31 pname = "spacy"; 32 version = "3.1.3"; 33 34 disabled = pythonOlder "3.6"; 35 36 src = fetchPypi { 37 inherit pname version; 38 sha256 = "sha256-WAhOZKJ5lxkupI8Yq7MOwUjFu+edBNF7pNL8JiEAwqI="; 39 }; 40 41 propagatedBuildInputs = [ 42 blis 43 catalogue 44 cymem 45 jinja2 46 jsonschema 47 murmurhash 48 numpy 49 packaging 50 pathy 51 preshed 52 pydantic 53 requests 54 setuptools 55 srsly 56 spacy-legacy 57 thinc 58 tqdm 59 typer 60 wasabi 61 ] ++ lib.optional (pythonOlder "3.8") typing-extensions; 62 63 checkInputs = [ 64 pytest 65 ]; 66 67 doCheck = false; 68 checkPhase = '' 69 ${python.interpreter} -m pytest spacy/tests --vectors --models --slow 70 ''; 71 72 pythonImportsCheck = [ "spacy" ]; 73 74 passthru.tests.annotation = callPackage ./annotation-test { }; 75 76 meta = with lib; { 77 description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"; 78 homepage = "https://github.com/explosion/spaCy"; 79 license = licenses.mit; 80 maintainers = with maintainers; [ ]; 81 }; 82}