Files
2026-09-05 19:47:45 -07:00

53 lines
1.0 KiB
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
yarl,
}:
buildPythonPackage (finalAttrs: {
pname = "aiohortos";
version = "0.3.1";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "wildekek";
repo = "aiohortos";
tag = "v${finalAttrs.version}";
hash = "sha256-8CBD9hncGHitGOThZATxsH7Z45EQ6taGFPq4cRwcK/8=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
yarl
];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "aiohortos" ];
__darwinAllowLocalNetworking = true;
meta = {
description = "Async client for the Ridder HortOS Automation API";
homepage = "https://github.com/wildekek/aiohortos";
changelog = "https://github.com/wildekek/aiohortos/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})