1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 unittestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "cyrtranslit";
11 version = "1.1.1";
12 pyproject = true;
13
14 # Pypi tarball doesn't contain tests/
15 src = fetchFromGitHub {
16 owner = "opendatakosovo";
17 repo = "cyrillic-transliteration";
18 tag = "v${version}";
19 hash = "sha256-t8UTOmjGqjmxU7+Po0/HmOPWAvcgZibaUC9dMlttA/0=";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [ unittestCheckHook ];
25
26 pythonImportsCheck = [ "cyrtranslit" ];
27
28 meta = with lib; {
29 description = "Transliterate Cyrillic script to Latin script and vice versa";
30 homepage = "https://github.com/opendatakosovo/cyrillic-transliteration";
31 license = licenses.mit;
32 maintainers = with maintainers; [ erictapen ];
33 };
34
35}