1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pyserial
6, pytestCheckHook
7, websockets
8}:
9
10buildPythonPackage rec {
11 pname = "aqualogic";
12 version = "3.4";
13
14 src = fetchFromGitHub {
15 owner = "swilson";
16 repo = pname;
17 rev = version;
18 hash = "sha256-hBg02Wypd+MyqM2SUD53djhm5OMP2QAmsp8Stf+UT2c=";
19 };
20
21 propagatedBuildInputs = [
22 aiohttp
23 pyserial
24 websockets
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
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}