1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5, pythonOlder
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "jaconv";
11 version = "0.3";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "ikegami-yukino";
18 repo = pname;
19 rev = "v${version}";
20 sha256 = "rityHi1JWWlV7+sAxNrlbcmfHmORZWrMZqXTRlsclhQ=";
21 };
22
23 checkInputs = [
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 license = licenses.mit;
36 maintainers = with maintainers; [ fab ];
37 };
38}