1{
2 aiohttp,
3 aiohttp-sse-client2,
4 aresponses,
5 awesomeversion,
6 buildPythonPackage,
7 fetchFromGitHub,
8 lib,
9 mashumaro,
10 poetry-core,
11 pytest-asyncio,
12 pytestCheckHook,
13}:
14
15buildPythonPackage rec {
16 pname = "pysmlight";
17 version = "0.2.4";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "smlight-tech";
22 repo = "pysmlight";
23 tag = "v${version}";
24 hash = "sha256-ZNqNRz7d3HZybQG778+ubxuc7Eakf/kWpd3I3cosSIU=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 aiohttp
31 aiohttp-sse-client2
32 awesomeversion
33 mashumaro
34 ];
35
36 pythonImportsCheck = [ "pysmlight" ];
37
38 nativeCheckInputs = [
39 aresponses
40 pytest-asyncio
41 pytestCheckHook
42 ];
43
44 meta = {
45 changelog = "https://github.com/smlight-tech/pysmlight/releases/tag/${src.tag}";
46 description = "Library implementing API control of the SMLIGHT SLZB-06 LAN Coordinators";
47 homepage = "https://github.com/smlight-tech/pysmlight";
48 license = lib.licenses.asl20;
49 maintainers = with lib.maintainers; [ dotlambda ];
50 };
51}