Files
nixpkgs/pkgs/development/python-modules/lunatone-rest-api-client/default.nix
2025-11-05 10:01:13 -08:00

48 lines
1.0 KiB
Nix

{
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 ];
};
}