python314Packages.audio-hotplug: init at 0.1.0

This commit is contained in:
Sandro Jäckel
2026-04-23 00:05:56 +02:00
parent beed25aab6
commit 16dfcd3e0f
2 changed files with 51 additions and 0 deletions
@@ -0,0 +1,49 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pyobjc-framework-CoreAudio,
pytest-asyncio,
pytestCheckHook,
pyudev,
stdenv,
uv-build,
}:
buildPythonPackage (finalAttrs: {
pname = "audio-hotplug";
version = "0.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "LedFx";
repo = "audio-hotplug";
tag = "v${finalAttrs.version}";
hash = "sha256-Xq81AfJ5E8lAk1JohD7/RlEDVRrbi/ScX80nMiRd+dY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.9.13,<0.10.0" "uv_build"
'';
build-system = [ uv-build ];
dependencies =
lib.optionals stdenv.hostPlatform.isLinux [ pyudev ]
++ lib.optional stdenv.hostPlatform.isDarwin pyobjc-framework-CoreAudio;
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "audio_hotplug" ];
meta = {
description = "Wrapper for Auburns' FastNoise Lite noise generation library";
homepage = "https://github.com/tizilogic/PyFastNoiseLite";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ SuperSandro2000 ];
};
})
+2
View File
@@ -1224,6 +1224,8 @@ self: super: with self; {
audible = callPackage ../development/python-modules/audible { };
audio-hotplug = callPackage ../development/python-modules/audio-hotplug { };
audioop-lts =
if pythonAtLeast "3.13" then callPackage ../development/python-modules/audioop-lts { } else null;