From 8fd99e12128381ee4efdc1c13e09f2e41795c500 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 3 Apr 2023 13:17:02 +0200 Subject: [PATCH] python3Packages.jiwer: init at 3.0.1 --- .../python-modules/jiwer/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/jiwer/default.nix diff --git a/pkgs/development/python-modules/jiwer/default.nix b/pkgs/development/python-modules/jiwer/default.nix new file mode 100644 index 000000000000..42c9192255f8 --- /dev/null +++ b/pkgs/development/python-modules/jiwer/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, rapidfuzz +, click +}: + +buildPythonPackage rec { + pname = "jiwer"; + version = "3.0.1"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "jitsi"; + repo = pname; + rev = "v${version}"; + hash = "sha256-bH5TE6mcSG+WqvjW8Sd/o5bCBJmv9zurFEG2cVY/vYQ="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + rapidfuzz + click + ]; + + pythonImportsCheck = [ "jiwer" ]; + + meta = with lib; { + description = "JiWER is a simple and fast python package to evaluate an automatic speech recognition system"; + homepage = "https://github.com/jitsi/jiwer"; + license = licenses.asl20; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 267dc6f25fc6..3ddbaaf436a1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5000,6 +5000,8 @@ self: super: with self; { jira = callPackage ../development/python-modules/jira { }; + jiwer = callPackage ../development/python-modules/jiwer { }; + jmespath = callPackage ../development/python-modules/jmespath { }; jmp = callPackage ../development/python-modules/jmp { };