Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 unittestCheckHook,
7
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "khanaa";
13 version = "0.1.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "cakimpei";
18 repo = "khanaa";
19 tag = "v${version}";
20 hash = "sha256-QFvvahVEld3BooINeUYJDahZyfh5xmQNtWRLAOdr6lw=";
21 };
22
23 build-system = [ setuptools ];
24
25 patches = [
26 ./001-skip-broken-test.patch
27 ];
28
29 nativeCheckInputs = [ unittestCheckHook ];
30
31 unittestFlagsArray = [
32 "-s"
33 "tests"
34 ];
35
36 pythonImportsCheck = [ "khanaa" ];
37
38 meta = {
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 = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ vizid ];
44 };
45}