1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "jaconv";
12 version = "0.3.4";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "ikegami-yukino";
19 repo = "jaconv";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-9ruhOLaYNESeKOwJs3IN6ct66fSq7My9DOyA7/cH3d0=";
22 };
23
24 patches = [ ./use-pytest.patch ];
25
26 build-system = [ setuptools ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "jaconv" ];
31
32 meta = with lib; {
33 description = "Python Japanese character interconverter for Hiragana, Katakana, Hankaku and Zenkaku";
34 homepage = "https://github.com/ikegami-yukino/jaconv";
35 changelog = "https://github.com/ikegami-yukino/jaconv/blob/v${version}/CHANGES.rst";
36 license = licenses.mit;
37 maintainers = with maintainers; [ fab ];
38 };
39}