Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 rapidfuzz, 7 click, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "jiwer"; 13 version = "3.04"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "jitsi"; 20 repo = "jiwer"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-2LzAOgABK00Pz3v5WWYUAcZOYcTbRKfgw7U5DOohB/Q="; 23 }; 24 25 build-system = [ 26 poetry-core 27 ]; 28 29 dependencies = [ 30 rapidfuzz 31 click 32 ]; 33 34 pythonRelaxDeps = [ "rapidfuzz" ]; 35 36 pythonImportsCheck = [ "jiwer" ]; 37 38 meta = with lib; { 39 description = "Simple and fast python package to evaluate an automatic speech recognition system"; 40 mainProgram = "jiwer"; 41 homepage = "https://github.com/jitsi/jiwer"; 42 changelog = "https://github.com/jitsi/jiwer/releases/tag/v${version}"; 43 license = licenses.asl20; 44 maintainers = with maintainers; [ GaetanLepage ]; 45 }; 46}