1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pythonRelaxDepsHook
6, rapidfuzz
7, click
8}:
9
10buildPythonPackage rec {
11 pname = "jiwer";
12 version = "3.0.1";
13 format = "pyproject";
14
15 src = fetchFromGitHub {
16 owner = "jitsi";
17 repo = pname;
18 rev = "v${version}";
19 hash = "sha256-bH5TE6mcSG+WqvjW8Sd/o5bCBJmv9zurFEG2cVY/vYQ=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 pythonRelaxDepsHook
25 ];
26
27 propagatedBuildInputs = [
28 rapidfuzz
29 click
30 ];
31
32 pythonRelaxDeps = [
33 "rapidfuzz"
34 ];
35
36 pythonImportsCheck = [ "jiwer" ];
37
38 meta = with lib; {
39 description = "A simple and fast python package to evaluate an automatic speech recognition system";
40 homepage = "https://github.com/jitsi/jiwer";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ GaetanLepage ];
43 };
44}