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