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