From 623af5aef21e31327c895f1026680fd87345e006 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 12 Sep 2024 14:53:12 +0200 Subject: [PATCH] python312Packages.aiostreammagic: init at 2.2.5 Module for interfacing with Cambridge Audio/Stream Magic compatible streamers https://github.com/noahhusby/aiostreammagic --- .../python-modules/aiostreammagic/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/aiostreammagic/default.nix diff --git a/pkgs/development/python-modules/aiostreammagic/default.nix b/pkgs/development/python-modules/aiostreammagic/default.nix new file mode 100644 index 000000000000..1fec6b0ea116 --- /dev/null +++ b/pkgs/development/python-modules/aiostreammagic/default.nix @@ -0,0 +1,52 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + mashumaro, + orjson, + poetry-core, + pythonOlder, + websockets, + yarl, +}: + +buildPythonPackage rec { + pname = "aiostreammagic"; + version = "2.2.5"; + pyproject = true; + + disabled = pythonOlder "3.11"; + + src = fetchFromGitHub { + owner = "noahhusby"; + repo = "aiostreammagic"; + rev = "refs/tags/${version}"; + hash = "sha256-fJiP16LvHuYlSkeq/SijWI8YEX8T4lGDJLAVvKplgHI="; + }; + + pythonRelaxDeps = [ "websockets" ]; + + build-system = [ poetry-core ]; + + dependencies = [ + aiohttp + mashumaro + orjson + websockets + yarl + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ "aiostreammagic" ]; + + meta = { + description = "Module for interfacing with Cambridge Audio/Stream Magic compatible streamers"; + homepage = "https://github.com/noahhusby/aiostreammagic"; + changelog = "https://github.com/noahhusby/aiostreammagic/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5b67720f4067..3a6852de4e0b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -443,6 +443,8 @@ self: super: with self; { aiostream = callPackage ../development/python-modules/aiostream { }; + aiostreammagic = callPackage ../development/python-modules/aiostreammagic { }; + aioswitcher = callPackage ../development/python-modules/aioswitcher { }; aiosyncthing = callPackage ../development/python-modules/aiosyncthing { };