Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.1 kB view raw
1{ lib, buildPythonPackage, fetchPypi, isPy27 2, cachetools 3, cytoolz 4, jellyfish 5, matplotlib 6, networkx 7, numpy 8, pyemd 9, pyphen 10, pytest 11, requests 12, scikitlearn 13, scipy 14, spacy 15, srsly 16}: 17 18buildPythonPackage rec { 19 pname = "textacy"; 20 version = "0.10.0"; 21 disabled = isPy27; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "0a824333f53d19d24ca864c92da52f3fecd412f4ef3e1448864c45f06189fd6d"; 26 }; 27 28 propagatedBuildInputs = [ 29 cachetools 30 cytoolz 31 jellyfish 32 matplotlib 33 networkx 34 numpy 35 pyemd 36 pyphen 37 requests 38 scikitlearn 39 scipy 40 spacy 41 srsly 42 ]; 43 44 checkInputs = [ pytest ]; 45 # almost all tests have to deal with downloading a dataset, only test pure tests 46 checkPhase = '' 47 pytest tests/test_text_utils.py \ 48 tests/test_utils.py \ 49 tests/preprocessing \ 50 tests/datasets/test_base_dataset.py 51 ''; 52 53 meta = with lib; { 54 description = "Higher-level text processing, built on spaCy"; 55 homepage = "https://textacy.readthedocs.io/"; 56 license = licenses.asl20; 57 maintainers = with maintainers; [ rvl ]; 58 }; 59}