1{ stdenv 2, buildPythonPackage 3, isPy27 4, fetchPypi 5, cachetools 6, cld2-cffi 7, cython 8, cytoolz 9, ftfy 10, ijson 11, matplotlib 12, networkx 13, numpy 14, pyemd 15, pyphen 16, python-Levenshtein 17, requests 18, scikitlearn 19, scipy 20, spacy 21, tqdm 22, unidecode 23}: 24 25buildPythonPackage rec { 26 name = "${pname}-${version}"; 27 pname = "textacy"; 28 version = "0.5.0"; 29 30 src = fetchPypi { 31 inherit pname version; 32 sha256 = "6fc4603fd52c386081b063ef7aa15ca77e5e937a3064b197359659fccfdeb406"; 33 }; 34 35 disabled = isPy27; # 2.7 requires backports.csv 36 37 propagatedBuildInputs = [ 38 cachetools 39 cld2-cffi 40 cytoolz 41 ftfy 42 ijson 43 matplotlib 44 networkx 45 numpy 46 pyemd 47 pyphen 48 python-Levenshtein 49 requests 50 scikitlearn 51 scipy 52 spacy 53 tqdm 54 unidecode 55 ]; 56 57 doCheck = false; # tests want to download data files 58 59 meta = with stdenv.lib; { 60 description = "Higher-level text processing, built on spaCy"; 61 homepage = "http://textacy.readthedocs.io/"; 62 license = licenses.asl20; 63 maintainers = with maintainers; [ rvl ]; 64 }; 65}