python3Packages.textstat: init at 0.7.4

This commit is contained in:
aucub 2024-11-02 08:34:22 +08:00
parent 48351d1a11
commit 2d1b8b6676
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyphen,
pytestCheckHook,
pytest,
}:
buildPythonPackage rec {
version = "0.7.4";
pname = "textstat";
pyproject = true;
src = fetchFromGitHub {
owner = "textstat";
repo = "textstat";
rev = version;
hash = "sha256-UOCWsIdoVGxmkro4kNBYNMYhA3kktngRDxKjo6o+GXY=";
};
build-system = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
pytest
];
dependencies = [
setuptools
pyphen
];
pythonImportsCheck = [
"textstat"
];
pytestFlagsArray = [
"test.py"
];
meta = {
description = "Python package to calculate readability statistics of a text object";
homepage = "https://textstat.org";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aleksana ];
};
}

View File

@ -15616,6 +15616,8 @@ self: super: with self; {
textparser = callPackage ../development/python-modules/textparser { };
textstat = callPackage ../development/python-modules/textstat { };
textual = callPackage ../development/python-modules/textual { };
textual-dev = callPackage ../development/python-modules/textual-dev { };