diff --git a/pkgs/development/python-modules/lunatone-rest-api-client/default.nix b/pkgs/development/python-modules/lunatone-rest-api-client/default.nix new file mode 100644 index 000000000000..f80d2d7a20a0 --- /dev/null +++ b/pkgs/development/python-modules/lunatone-rest-api-client/default.nix @@ -0,0 +1,47 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitLab, + hatchling, + lib, + pydantic, + pytest-aioresponses, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "lunatone-rest-api-client"; + version = "0.5.3"; + pyproject = true; + + src = fetchFromGitLab { + owner = "lunatone-public"; + repo = "lunatone-rest-api-client"; + tag = "v${version}"; + hash = "sha256-pxoD4EAyBmNmTXrhXa+zpnkwrsC+9mervbXzgptSFVo="; + }; + + build-system = [ hatchling ]; + + dependencies = [ + aiohttp + pydantic + ]; + + pythonImportsCheck = [ "lunatone_rest_api_client" ]; + + nativeCheckInputs = [ + pytest-aioresponses + pytest-asyncio + pytestCheckHook + ]; + + meta = { + changelog = "https://gitlab.com/lunatone-public/lunatone-rest-api-client/-/blob/${src.tag}/CHANGELOG.md"; + description = "Client library for accessing the Lunatone REST API"; + homepage = "https://gitlab.com/lunatone-public/lunatone-rest-api-client"; + license = lib.licenses.gpl3Only; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d9287e3c6811..c19ebe93f949 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8926,6 +8926,8 @@ self: super: with self; { lunarcalendar = callPackage ../development/python-modules/lunarcalendar { }; + lunatone-rest-api-client = callPackage ../development/python-modules/lunatone-rest-api-client { }; + lupa = callPackage ../development/python-modules/lupa { }; lupupy = callPackage ../development/python-modules/lupupy { };