Files
nixpkgs/pkgs/development/python-modules/textstat/default.nix
2025-08-28 23:45:24 +03:00

53 lines
854 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cmudict,
setuptools,
pyphen,
pytestCheckHook,
pytest,
}:
buildPythonPackage rec {
version = "0.7.8";
pname = "textstat";
pyproject = true;
src = fetchFromGitHub {
owner = "textstat";
repo = "textstat";
tag = version;
hash = "sha256-EEGTmZXTAZ4fsfZk/ictvjQ6lCAi5Ma/Ae83ziGDQXQ=";
};
build-system = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
pytest
];
dependencies = [
setuptools
pyphen
cmudict
];
pythonImportsCheck = [
"textstat"
];
enabledTestPaths = [
"tests/"
];
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 ];
};
}