2025-06-12 10:22:54 +00:00

53 lines
984 B
Nix

{
aiohttp,
buildPythonPackage,
fetchFromGitHub,
lib,
pyjwt,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
syrupy,
}:
buildPythonPackage rec {
pname = "aiokem";
version = "1.1.4";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "kohlerlibs";
repo = "aiokem";
tag = "v${version}";
hash = "sha256-4LbpTov81LMr4V8jMgttlUCyHWJoR6tExOvt8X4Telc=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
pyjwt
];
pythonImportsCheck = [ "aiokem" ];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
syrupy
];
meta = {
changelog = "https://github.com/kohlerlibs/aiokem/blob/${src.tag}/CHANGELOG.md";
description = "Async API for Kohler Energy Management";
homepage = "https://github.com/kohlerlibs/aiokem";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}