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