1{
2 appdirs,
3 buildPythonPackage,
4 fetchFromGitHub,
5 importlib-resources,
6 lib,
7 poetry-core,
8 pyserial,
9 pyserial-asyncio,
10 pytestCheckHook,
11 pyyaml,
12}:
13
14buildPythonPackage rec {
15 pname = "heatmiserv3";
16 version = "2.0.3";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "andylockran";
21 repo = "heatmiserV3";
22 tag = version;
23 hash = "sha256-Ia0QUMDvuvn2af52lW7ObSQ9MSPNOgWyBuFBnqfYrpM=";
24 };
25
26 build-system = [ poetry-core ];
27
28 dependencies = [
29 appdirs
30 importlib-resources
31 pyserial
32 pyserial-asyncio
33 pyyaml
34 ];
35
36 pythonImportsCheck = [ "heatmiserv3" ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 meta = {
41 description = "Library to interact with Heatmiser Themostats using V3 protocol";
42 homepage = "https://github.com/andylockran/heatmiserV3";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ dotlambda ];
45 };
46}