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