mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
68 lines
1.0 KiB
Nix
68 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cairocffi
|
|
, cython
|
|
, fetchPypi
|
|
, igraph
|
|
, leidenalg
|
|
, pandas
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scipy
|
|
, setuptools
|
|
, spacy
|
|
, en_core_web_sm
|
|
, toolz
|
|
, tqdm
|
|
, wasabi
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "textnets";
|
|
version = "0.8.8";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-rjXEiaPYctrONIZz1Dd5OSDw5z8D2FPXi5TneKizFUQ=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|