1{ lib 2, buildPythonPackage 3, cairocffi 4, cython 5, fetchPypi 6, igraph 7, leidenalg 8, pandas 9, poetry-core 10, pytestCheckHook 11, pythonOlder 12, scipy 13, setuptools 14, spacy 15, spacy-lookups-data 16, en_core_web_sm 17, toolz 18, tqdm 19, wasabi 20}: 21 22buildPythonPackage rec { 23 pname = "textnets"; 24 version = "0.9.3"; 25 format = "pyproject"; 26 27 disabled = pythonOlder "3.8"; 28 29 src = fetchPypi { 30 inherit pname version; 31 hash = "sha256-fx2S43IqpSMsfJow26jB/D27dyUFQ1PlXP1rbUIZPPQ="; 32 }; 33 34 nativeBuildInputs = [ 35 cython 36 poetry-core 37 setuptools 38 ]; 39 40 propagatedBuildInputs = [ 41 cairocffi 42 igraph 43 leidenalg 44 pandas 45 scipy 46 spacy 47 spacy-lookups-data 48 toolz 49 tqdm 50 wasabi 51 ]; 52 53 nativeCheckInputs = [ 54 pytestCheckHook 55 en_core_web_sm 56 ]; 57 58 pythonImportsCheck = [ 59 "textnets" 60 ]; 61 62 disabledTests = [ 63 # Test fails: A warning is triggered because of a deprecation notice by pandas. 64 # TODO: Try to re-enable it when pandas is updated to 2.1.1 65 "test_corpus_czech" 66 ]; 67 68 meta = with lib; { 69 description = "Text analysis with networks"; 70 homepage = "https://textnets.readthedocs.io"; 71 changelog = "https://github.com/jboynyc/textnets/blob/v${version}/HISTORY.rst"; 72 license = licenses.gpl3Only; 73 maintainers = with maintainers; [ jboy ]; 74 }; 75}