2023-03-08 16:32:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cairocffi
|
|
|
|
, cython
|
2023-04-12 12:48:02 +00:00
|
|
|
, fetchPypi
|
2023-03-08 16:32:21 +00:00
|
|
|
, igraph
|
|
|
|
, leidenalg
|
|
|
|
, pandas
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, scipy
|
|
|
|
, setuptools
|
|
|
|
, spacy
|
2023-10-09 19:29:22 +00:00
|
|
|
, spacy-lookups-data
|
2023-03-08 16:32:21 +00:00
|
|
|
, en_core_web_sm
|
|
|
|
, toolz
|
|
|
|
, tqdm
|
|
|
|
, wasabi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "textnets";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.9.3";
|
2023-03-08 16:32:21 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-fx2S43IqpSMsfJow26jB/D27dyUFQ1PlXP1rbUIZPPQ=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
poetry-core
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cairocffi
|
|
|
|
igraph
|
|
|
|
leidenalg
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
spacy
|
2023-10-09 19:29:22 +00:00
|
|
|
spacy-lookups-data
|
2023-03-08 16:32:21 +00:00
|
|
|
toolz
|
|
|
|
tqdm
|
|
|
|
wasabi
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
en_core_web_sm
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"textnets"
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test fails: A warning is triggered because of a deprecation notice by pandas.
|
|
|
|
# TODO: Try to re-enable it when pandas is updated to 2.1.1
|
|
|
|
"test_corpus_czech"
|
|
|
|
];
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Text analysis with networks";
|
|
|
|
homepage = "https://textnets.readthedocs.io";
|
|
|
|
changelog = "https://github.com/jboynyc/textnets/blob/v${version}/HISTORY.rst";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ jboy ];
|
|
|
|
};
|
|
|
|
}
|