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