1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pyphen,
7 pytestCheckHook,
8 pytest,
9}:
10buildPythonPackage rec {
11 version = "0.7.4";
12 pname = "textstat";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "textstat";
17 repo = "textstat";
18 rev = version;
19 hash = "sha256-UOCWsIdoVGxmkro4kNBYNMYhA3kktngRDxKjo6o+GXY=";
20 };
21
22 build-system = [
23 setuptools
24 ];
25
26 nativeCheckInputs = [
27 pytestCheckHook
28 pytest
29 ];
30
31 dependencies = [
32 setuptools
33 pyphen
34 ];
35
36 pythonImportsCheck = [
37 "textstat"
38 ];
39
40 pytestFlagsArray = [
41 "test.py"
42 ];
43
44 meta = {
45 description = "Python package to calculate readability statistics of a text object";
46 homepage = "https://textstat.org";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ aleksana ];
49 };
50}