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
|
|
|
|
, en_core_web_sm
|
|
|
|
, toolz
|
|
|
|
, tqdm
|
|
|
|
, wasabi
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "textnets";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.8.8";
|
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;
|
|
|
|
hash = "sha256-rjXEiaPYctrONIZz1Dd5OSDw5z8D2FPXi5TneKizFUQ=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
poetry-core
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cairocffi
|
|
|
|
igraph
|
|
|
|
leidenalg
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
spacy
|
|
|
|
toolz
|
|
|
|
tqdm
|
|
|
|
wasabi
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
en_core_web_sm
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"textnets"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|