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