diff --git a/pkgs/development/python-modules/aiolibresync/default.nix b/pkgs/development/python-modules/aiolibresync/default.nix new file mode 100644 index 000000000000..c58e75b4b978 --- /dev/null +++ b/pkgs/development/python-modules/aiolibresync/default.nix @@ -0,0 +1,38 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "aiolibresync"; + version = "0.5.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "drsound"; + repo = "aiolibresync"; + tag = "v${finalAttrs.version}"; + hash = "sha256-N69rpWbiy89Icmusbt3lX2svQnJZRHk0M2KEPY8HMX4="; + }; + + build-system = [ hatchling ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "aiolibresync" ]; + + meta = { + description = "Async client for Libre Wireless LibreSync audio hubs, such as the Platin Stereo Hub"; + homepage = "https://github.com/drsound/aiolibresync"; + changelog = "https://github.com/drsound/aiolibresync/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a6c7a7b0cc87..aaf12b9797ee 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -426,6 +426,8 @@ self: super: with self; { aiolibrenms = callPackage ../development/python-modules/aiolibrenms { }; + aiolibresync = callPackage ../development/python-modules/aiolibresync { }; + aiolichess = callPackage ../development/python-modules/aiolichess { }; aiolifx = callPackage ../development/python-modules/aiolifx { };