python313Packages.noisereduce: init at 3.0.3 (#433574)

This commit is contained in:
Fabian Affolter 2025-08-14 20:46:34 +02:00 committed by GitHub
commit 369e8e3ba1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
joblib,
matplotlib,
numpy,
pytestCheckHook,
scipy,
setuptools,
torch,
tqdm,
}:
buildPythonPackage rec {
pname = "noisereduce";
version = "3.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "timsainb";
repo = "noisereduce";
tag = "v${version}";
hash = "sha256-CMXbl+9L01rtsD8BZ3nNomacsChy/1EGdUdWz7Ytbjk=";
};
build-system = [ setuptools ];
dependencies = [
joblib
matplotlib
numpy
scipy
tqdm
];
optional-dependencies = {
PyTorch = [ torch ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "noisereduce" ];
meta = {
description = "Noise reduction using spectral gating (speech, bioacoustics, audio, time-domain signals";
homepage = "https://github.com/timsainb/noisereduce";
changelog = "https://github.com/timsainb/noisereduce/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -10477,6 +10477,8 @@ self: super: with self; {
noiseprotocol = callPackage ../development/python-modules/noiseprotocol { }; noiseprotocol = callPackage ../development/python-modules/noiseprotocol { };
noisereduce = callPackage ../development/python-modules/noisereduce { };
nomadnet = callPackage ../development/python-modules/nomadnet { }; nomadnet = callPackage ../development/python-modules/nomadnet { };
nominal = callPackage ../development/python-modules/nominal { }; nominal = callPackage ../development/python-modules/nominal { };