1{
2 aiohttp,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lib,
6 pyjwt,
7 pytest-asyncio,
8 pytest-cov-stub,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12 syrupy,
13}:
14
15buildPythonPackage rec {
16 pname = "aiokem";
17 version = "1.1.4";
18 pyproject = true;
19
20 disabled = pythonOlder "3.12";
21
22 src = fetchFromGitHub {
23 owner = "kohlerlibs";
24 repo = "aiokem";
25 tag = "v${version}";
26 hash = "sha256-4LbpTov81LMr4V8jMgttlUCyHWJoR6tExOvt8X4Telc=";
27 };
28
29 build-system = [ setuptools ];
30
31 dependencies = [
32 aiohttp
33 pyjwt
34 ];
35
36 pythonImportsCheck = [ "aiokem" ];
37
38 nativeCheckInputs = [
39 pytest-asyncio
40 pytest-cov-stub
41 pytestCheckHook
42 syrupy
43 ];
44
45 meta = {
46 changelog = "https://github.com/kohlerlibs/aiokem/blob/${src.tag}/CHANGELOG.md";
47 description = "Async API for Kohler Energy Management";
48 homepage = "https://github.com/kohlerlibs/aiokem";
49 license = lib.licenses.mit;
50 maintainers = with lib.maintainers; [ dotlambda ];
51 };
52}