From c6f3fef2971dfffea3a7d237b1b3298ff8571616 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 6 Apr 2023 09:38:45 +0300 Subject: [PATCH] python310Packages.jiwer: fix build --- pkgs/development/python-modules/jiwer/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/jiwer/default.nix b/pkgs/development/python-modules/jiwer/default.nix index 42c9192255f8..94d92579d7ab 100644 --- a/pkgs/development/python-modules/jiwer/default.nix +++ b/pkgs/development/python-modules/jiwer/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchFromGitHub , poetry-core +, pythonRelaxDepsHook , rapidfuzz , click }: @@ -20,6 +21,7 @@ buildPythonPackage rec { nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ @@ -27,10 +29,14 @@ buildPythonPackage rec { click ]; + pythonRelaxDeps = [ + "rapidfuzz" + ]; + pythonImportsCheck = [ "jiwer" ]; meta = with lib; { - description = "JiWER is a simple and fast python package to evaluate an automatic speech recognition system"; + description = "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 ];