summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorKjartan Oli Agustsson <kjartanoli@outlook.com>2025-05-28 10:46:24 +0000
committerAndrew Tropin <andrew@trop.in>2025-06-11 16:44:17 +0700
commit840e2177c274e126785ca73676e75471235a165b (patch)
tree3468265ba9e630b73c46d8aad144eed8c03b3c0d /gnu/packages/python-xyz.scm
parent41a61d5446b132e181bf923d3d60d77ba30942ab (diff)
gnu: Add python-pykakasi.
* gnu/packages/python-xyz.scm (python-pykakasi): New variable. Change-Id: Iefd9276a6ce41036b4391cd29d84c7d9f5f59da4 Signed-off-by: Andrew Tropin <andrew@trop.in>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 11cd14e3dd..fcff7dbe34 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31473,6 +31473,38 @@ structure.")
for YAML and JSON.")
(license license:expat)))
+(define-public python-pykakasi
+ (package
+ (name "python-pykakasi")
+ (version "2.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pykakasi" version))
+ (sha256
+ (base32 "18dhcw7myw5idajnfynjbvqxmyf9m0cygfwsavbbi7zmcf72l1gs"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:test-flags ''("-k" "not test_aozora")))
+ (propagated-inputs (list python-deprecated python-importlib-resources
+ python-jaconv))
+ (native-inputs (list python-coverage
+ python-py-cpuinfo
+ python-pytest
+ python-pytest-benchmark
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (home-page "https://codeberg.org/miurahr/pykakasi")
+ (synopsis "Kana kanji simple inversion library")
+ (description
+ "pykakasi is a Python Natural Language Processing @acronym{NLP, Natural
+Language Processing} library to transliterate hiragana, katakana and
+kanji (Japanese text) into rōmaji (Latin/Roman alphabet). It can handle
+characters in NFC form.
+
+Its algorithms are based on the kakasi library, which is written in C.")
+ (license license:gpl3+)))
+
(define-public python-dbus-python
(package
(name "python-dbus-python")