2021-02-16 17:04:54 +00:00
|
|
|
{ lib
|
2021-07-14 22:03:04 +00:00
|
|
|
, aiohttp
|
2021-02-16 17:04:54 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyserial
|
|
|
|
, pytestCheckHook
|
2021-07-14 22:03:04 +00:00
|
|
|
, websockets
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aqualogic";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.4";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swilson";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-hBg02Wypd+MyqM2SUD53djhm5OMP2QAmsp8Stf+UT2c=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
aiohttp
|
2021-07-14 22:03:04 +00:00
|
|
|
pyserial
|
|
|
|
websockets
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-14 22:03:04 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
# With 3.4 the event loop is not terminated after the first test
|
2021-07-14 22:03:04 +00:00
|
|
|
# https://github.com/swilson/aqualogic/issues/9
|
|
|
|
doCheck = false;
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "aqualogic" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to interface with Hayward/Goldline AquaLogic/ProLogic pool controllers";
|
|
|
|
homepage = "https://github.com/swilson/aqualogic";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|