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