mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 21:33:49 +00:00
python3Packages.textstat: init at 0.7.4
This commit is contained in:
parent
48351d1a11
commit
2d1b8b6676
50
pkgs/development/python-modules/textstat/default.nix
Normal file
50
pkgs/development/python-modules/textstat/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user