From 573d6a561d3dc29382907bfba4ea2747db30d46a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 7 Jul 2026 00:40:59 +0200 Subject: [PATCH] python3Packages.webrtc-noise-gain: 1.2.5 -> 1.3.0 https://github.com/rhasspy/webrtc-noise-gain/blob/v1.3.0/CHANGELOG.md --- .../webrtc-noise-gain/default.nix | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/webrtc-noise-gain/default.nix b/pkgs/development/python-modules/webrtc-noise-gain/default.nix index 1e670751958b..947f43ff1fcb 100644 --- a/pkgs/development/python-modules/webrtc-noise-gain/default.nix +++ b/pkgs/development/python-modules/webrtc-noise-gain/default.nix @@ -15,16 +15,16 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "webrtc-noise-gain"; - version = "1.2.5"; + version = "1.3.0"; pyproject = true; src = fetchFromGitHub { owner = "rhasspy"; repo = "webrtc-noise-gain"; - tag = "v${version}"; - hash = "sha256-GbdG2XM11zgPk2VZ0mu7qMv256jaMyJDHdBCBUnynMY="; + tag = "v${finalAttrs.version}"; + hash = "sha256-EfMqmtdW7k7DDPWxpOOsnpH9H4ifGQORnNlO+pnoLRk="; }; patches = [ @@ -41,10 +41,7 @@ buildPythonPackage rec { 'machine = "${lib.toLower processor}"' ''; - nativeBuildInputs = [ - pybind11 - setuptools - ]; + build-system = [ setuptools ]; buildInputs = [ abseil-cpp ]; @@ -52,11 +49,15 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + preCheck = '' + rm -rf webrtc_noise_gain + ''; + meta = { description = "Tiny wrapper around webrtc-audio-processing for noise suppression/auto gain only"; homepage = "https://github.com/rhasspy/webrtc-noise-gain"; - changelog = "https://github.com/rhasspy/webrtc-noise-gain/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/rhasspy/webrtc-noise-gain/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hexa ]; }; -} +})