depot/third_party/nixpkgs/pkgs/development/python-modules/jiwer/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

46 lines
929 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
rapidfuzz,
click,
pythonOlder,
}:
buildPythonPackage rec {
pname = "jiwer";
version = "3.04";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jitsi";
repo = "jiwer";
rev = "refs/tags/v${version}";
hash = "sha256-2LzAOgABK00Pz3v5WWYUAcZOYcTbRKfgw7U5DOohB/Q=";
};
build-system = [
poetry-core
];
dependencies = [
rapidfuzz
click
];
pythonRelaxDeps = [ "rapidfuzz" ];
pythonImportsCheck = [ "jiwer" ];
meta = with lib; {
description = "Simple and fast python package to evaluate an automatic speech recognition system";
mainProgram = "jiwer";
homepage = "https://github.com/jitsi/jiwer";
changelog = "https://github.com/jitsi/jiwer/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ GaetanLepage ];
};
}