1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pythonRelaxDepsHook,
7 rapidfuzz,
8 click,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "jiwer";
14 version = "3.04";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "jitsi";
21 repo = "jiwer";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-2LzAOgABK00Pz3v5WWYUAcZOYcTbRKfgw7U5DOohB/Q=";
24 };
25
26 build-system = [
27 poetry-core
28 pythonRelaxDepsHook
29 ];
30
31 dependencies = [
32 rapidfuzz
33 click
34 ];
35
36 pythonRelaxDeps = [ "rapidfuzz" ];
37
38 pythonImportsCheck = [ "jiwer" ];
39
40 meta = with lib; {
41 description = "A simple and fast python package to evaluate an automatic speech recognition system";
42 mainProgram = "jiwer";
43 homepage = "https://github.com/jitsi/jiwer";
44 changelog = "https://github.com/jitsi/jiwer/releases/tag/v${version}";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ GaetanLepage ];
47 };
48}