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