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 tag = "v${version}";
24 hash = "sha256-QFvvahVEld3BooINeUYJDahZyfh5xmQNtWRLAOdr6lw=";
25 };
26
27 build-system = [ setuptools ];
28
29 patches = [
30 ./001-skip-broken-test.patch
31 ];
32
33 nativeCheckInputs = [ unittestCheckHook ];
34
35 unittestFlagsArray = [
36 "-s"
37 "tests"
38 ];
39
40 pythonImportsCheck = [ "khanaa" ];
41
42 meta = with lib; {
43 description = "Tool to make spelling Thai more convenient";
44 homepage = "https://github.com/cakimpei/khanaa";
45 changelog = "https://github.com/cakimpei/khanaa/blob/main/CHANGELOG.md";
46 license = licenses.mit;
47 maintainers = with maintainers; [ vizid ];
48 };
49}