1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 pythonOlder,
7
8 unittestCheckHook,
9
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "khanaa";
15 version = "0.1.1";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "cakimpei";
22 repo = "khanaa";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-QFvvahVEld3BooINeUYJDahZyfh5xmQNtWRLAOdr6lw=";
25 };
26
27 build-system = [ setuptools ];
28
29 nativeCheckInputs = [ unittestCheckHook ];
30
31 unittestFlagsArray = [
32 "-s"
33 "tests"
34 ];
35
36 pythonImportsCheck = [ "khanaa" ];
37
38 meta = with lib; {
39 description = "Tool to make spelling Thai more convenient";
40 homepage = "https://github.com/cakimpei/khanaa";
41 changelog = "https://github.com/cakimpei/khanaa/blob/main/CHANGELOG.md";
42 license = licenses.mit;
43 maintainers = with maintainers; [ vizid ];
44 };
45}