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";
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "3.3";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swilson";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-6YvkSUtBc3Nl/Ap3LjU0IKY2bE4k86XdSoLo+/c8dDs=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyserial
|
|
|
|
websockets
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
checkInputs = [
|
|
|
|
aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-16 17:04:54 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
# With 3.3 the event loop is not terminated after the first test
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|