blob: cbb3d467ec26a7324038fd97bf594c1d5e79420c (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{
lib,
buildPythonPackage,
deprecated,
fetchFromGitea,
jaconv,
py-cpuinfo,
pytest-benchmark,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pykakasi";
version = "2.3.0";
pyproject = true;
src = fetchFromGitea {
domain = "codeberg.org";
owner = "miurahr";
repo = "pykakasi";
tag = "v${version}";
hash = "sha256-b2lYYdg1RW1xRD3hym7o1EnxzN/U5txVTWRifwZn3k0=";
};
build-system = [ setuptools-scm ];
dependencies = [
jaconv
deprecated
];
nativeCheckInputs = [
py-cpuinfo
pytest-benchmark
pytestCheckHook
];
disabledTests = [
# Assertion error
"test_aozora"
];
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "pykakasi" ];
meta = {
description = "Python converter for Japanese Kana-kanji sentences into Kana-Roman";
homepage = "https://codeberg.org/miurahr/pykakasi";
changelog = "https://codeberg.org/miurahr/pykakasi/src/tag/v${version}/CHANGELOG.rst";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "kakasi";
};
}
|