2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, rapidfuzz
|
|
|
|
, click
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonOlder
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jiwer";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.04";
|
|
|
|
pyproject = true;
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jitsi";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "jiwer";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-2LzAOgABK00Pz3v5WWYUAcZOYcTbRKfgw7U5DOohB/Q=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2023-04-12 12:48:02 +00:00
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2023-04-12 12:48:02 +00:00
|
|
|
rapidfuzz
|
|
|
|
click
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"rapidfuzz"
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jiwer"
|
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple and fast python package to evaluate an automatic speech recognition system";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jiwer";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/jitsi/jiwer";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/jitsi/jiwer/releases/tag/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|