1{ 2 lib, 3 buildPythonPackage, 4 deprecated, 5 fetchFromGitea, 6 importlib-resources, 7 jaconv, 8 py-cpuinfo, 9 pytest-benchmark, 10 pytestCheckHook, 11 pythonOlder, 12 setuptools-scm, 13}: 14 15buildPythonPackage rec { 16 pname = "pykakasi"; 17 version = "2.3.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitea { 23 domain = "codeberg.org"; 24 owner = "miurahr"; 25 repo = "pykakasi"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-b2lYYdg1RW1xRD3hym7o1EnxzN/U5txVTWRifwZn3k0="; 28 }; 29 30 build-system = [ setuptools-scm ]; 31 32 dependencies = [ 33 jaconv 34 deprecated 35 ] ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]; 36 37 nativeCheckInputs = [ 38 py-cpuinfo 39 pytest-benchmark 40 pytestCheckHook 41 ]; 42 43 disabledTests = [ 44 # Assertion error 45 "test_aozora" 46 ]; 47 48 pytestFlagsArray = [ "--benchmark-disable" ]; 49 50 pythonImportsCheck = [ "pykakasi" ]; 51 52 meta = with lib; { 53 description = "Python converter for Japanese Kana-kanji sentences into Kana-Roman"; 54 homepage = "https://codeberg.org/miurahr/pykakasi"; 55 changelog = "https://codeberg.org/miurahr/pykakasi/src/tag/v${version}/CHANGELOG.rst"; 56 license = licenses.gpl3Plus; 57 maintainers = with maintainers; [ fab ]; 58 mainProgram = "kakasi"; 59 }; 60}