1{
2 aiohttp,
3 aiomqtt,
4 buildPythonPackage,
5 fetchFromGitHub,
6 lib,
7 poetry-core,
8 pytest-asyncio,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "letpot";
14 version = "0.6.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "jpelgrom";
19 repo = "python-letpot";
20 tag = "v${version}";
21 hash = "sha256-aSnh1tCHAa5nLWkt0vmEXE0Dow6A5Zb6AkbTX15F6A0=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [
27 aiohttp
28 aiomqtt
29 ];
30
31 pythonImportsCheck = [ "letpot" ];
32
33 nativeCheckInputs = [
34 pytest-asyncio
35 pytestCheckHook
36 ];
37
38 meta = {
39 changelog = "https://github.com/jpelgrom/python-letpot/releases/tag/${src.tag}";
40 description = "Asynchronous Python client for LetPot hydroponic gardens";
41 homepage = "https://github.com/jpelgrom/python-letpot";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ dotlambda ];
44 };
45}