at 23.05-pre 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, cachetools 4, cytoolz 5, fetchPypi 6, jellyfish 7, joblib 8, matplotlib 9, networkx 10, numpy 11, pyemd 12, pyphen 13, pytestCheckHook 14, pythonOlder 15, requests 16, scikit-learn 17, scipy 18, spacy 19, tqdm 20}: 21 22buildPythonPackage rec { 23 pname = "textacy"; 24 version = "0.12.0"; 25 disabled = pythonOlder "3.7"; 26 format = "pyproject"; 27 28 src = fetchPypi { 29 inherit pname version; 30 sha256 = "2c92bdd6b47305447b64e4cb6cc43c11675f021f910a8074bc8149dbf5325e5b"; 31 }; 32 33 propagatedBuildInputs = [ 34 cachetools 35 cytoolz 36 jellyfish 37 joblib 38 matplotlib 39 networkx 40 numpy 41 pyemd 42 pyphen 43 requests 44 scikit-learn 45 scipy 46 spacy 47 tqdm 48 ]; 49 50 checkInputs = [ 51 pytestCheckHook 52 ]; 53 54 pytestFlagsArray = [ 55 # Almost all tests have to deal with downloading a dataset, only test pure tests 56 "tests/test_constants.py" 57 "tests/preprocessing/test_normalize.py" 58 "tests/similarity/test_edits.py" 59 "tests/preprocessing/test_resources.py" 60 "tests/preprocessing/test_replace.py" 61 ]; 62 63 pythonImportsCheck = [ "textacy" ]; 64 65 meta = with lib; { 66 description = "Higher-level text processing, built on spaCy"; 67 homepage = "https://textacy.readthedocs.io/"; 68 license = licenses.asl20; 69 maintainers = with maintainers; [ rvl ]; 70 }; 71}