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.8";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "smlight-tech";
22 repo = "pysmlight";
23 tag = "v${version}";
24 hash = "sha256-PPJotxlY1eSx0PNCDzsgaFvm4oPvG4LL4vb8G8ewMiw=";
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 __darwinAllowLocalNetworking = true;
45
46 meta = {
47 changelog = "https://github.com/smlight-tech/pysmlight/releases/tag/${src.tag}";
48 description = "Library implementing API control of the SMLIGHT SLZB-06 LAN Coordinators";
49 homepage = "https://github.com/smlight-tech/pysmlight";
50 license = lib.licenses.asl20;
51 maintainers = with lib.maintainers; [ dotlambda ];
52 };
53}