1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5, pythonOlder
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "jaconv";
11 version = "0.3.4";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "ikegami-yukino";
18 repo = pname;
19 rev = "refs/tags/v${version}";
20 hash = "sha256-9ruhOLaYNESeKOwJs3IN6ct66fSq7My9DOyA7/cH3d0=";
21 };
22
23 nativeCheckInputs = [
24 nose
25 pytestCheckHook
26 ];
27
28 pythonImportsCheck = [
29 "jaconv"
30 ];
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}