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, en_core_web_sm
16, toolz
17, tqdm
18, wasabi
19}:
20
21buildPythonPackage rec {
22 pname = "textnets";
23 version = "0.8.8";
24 format = "pyproject";
25
26 disabled = pythonOlder "3.8";
27
28 src = fetchPypi {
29 inherit pname version;
30 hash = "sha256-rjXEiaPYctrONIZz1Dd5OSDw5z8D2FPXi5TneKizFUQ=";
31 };
32
33 nativeBuildInputs = [
34 cython
35 poetry-core
36 setuptools
37 ];
38
39 propagatedBuildInputs = [
40 cairocffi
41 igraph
42 leidenalg
43 pandas
44 scipy
45 spacy
46 toolz
47 tqdm
48 wasabi
49 ];
50
51 nativeCheckInputs = [
52 pytestCheckHook
53 en_core_web_sm
54 ];
55
56 pythonImportsCheck = [
57 "textnets"
58 ];
59
60 meta = with lib; {
61 description = "Text analysis with networks";
62 homepage = "https://textnets.readthedocs.io";
63 changelog = "https://github.com/jboynyc/textnets/blob/v${version}/HISTORY.rst";
64 license = licenses.gpl3Only;
65 maintainers = with maintainers; [ jboy ];
66 };
67}