nixpkgs/pkgs/development/python-modules/aqualogic/default.nix

44 lines
898 B
Nix
Raw Normal View History

2021-02-14 08:34:20 +00:00
{ lib
2021-07-07 14:08:00 +00:00
, aiohttp
2021-02-14 08:34:20 +00:00
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pytestCheckHook
2021-07-07 14:08:00 +00:00
, websockets
2021-02-14 08:34:20 +00:00
}:
buildPythonPackage rec {
pname = "aqualogic";
2021-07-07 14:08:00 +00:00
version = "3.3";
2021-02-14 08:34:20 +00:00
src = fetchFromGitHub {
owner = "swilson";
repo = pname;
rev = version;
2021-07-07 14:08:00 +00:00
sha256 = "sha256-6YvkSUtBc3Nl/Ap3LjU0IKY2bE4k86XdSoLo+/c8dDs=";
2021-02-14 08:34:20 +00:00
};
2021-07-07 14:08:00 +00:00
propagatedBuildInputs = [
pyserial
websockets
2021-04-03 20:20:47 +00:00
];
2021-07-07 14:08:00 +00:00
checkInputs = [
aiohttp
pytestCheckHook
];
2021-02-14 08:34:20 +00:00
2021-07-07 14:08:00 +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-14 08:34:20 +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 ];
};
}