1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pyserial,
7 pytestCheckHook,
8 websockets,
9}:
10
11buildPythonPackage rec {
12 pname = "aqualogic";
13 version = "3.4";
14 format = "setuptools";
15
16 src = fetchFromGitHub {
17 owner = "swilson";
18 repo = "aqualogic";
19 rev = version;
20 hash = "sha256-hBg02Wypd+MyqM2SUD53djhm5OMP2QAmsp8Stf+UT2c=";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 pyserial
26 websockets
27 ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 # With 3.4 the event loop is not terminated after the first test
32 # https://github.com/swilson/aqualogic/issues/9
33 doCheck = false;
34
35 pythonImportsCheck = [ "aqualogic" ];
36
37 meta = with lib; {
38 description = "Python library to interface with Hayward/Goldline AquaLogic/ProLogic pool controllers";
39 homepage = "https://github.com/swilson/aqualogic";
40 license = with licenses; [ mit ];
41 maintainers = with maintainers; [ fab ];
42 };
43}