nixpkgs-suyu/pkgs/development/python-modules/aqualogic/default.nix
2021-02-20 10:47:45 +01:00

31 lines
699 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aqualogic";
version = "2.5";
src = fetchFromGitHub {
owner = "swilson";
repo = pname;
rev = version;
sha256 = "sha256-yxd+A5dsB9gBwVlPNjz+IgDHKTktNky84bWZMhA/xa4=";
};
propagatedBuildInputs = [ pyserial ];
checkInputs = [ pytestCheckHook ];
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 ];
};
}