From 1973729771ad773bab9a9ff98da217538bb327b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 14 Feb 2021 09:34:20 +0100 Subject: [PATCH] python3Packages.aqualogic: init at 2.3 --- .../python-modules/aqualogic/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/aqualogic/default.nix diff --git a/pkgs/development/python-modules/aqualogic/default.nix b/pkgs/development/python-modules/aqualogic/default.nix new file mode 100644 index 000000000000..dbd29f3d1102 --- /dev/null +++ b/pkgs/development/python-modules/aqualogic/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pyserial +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "aqualogic"; + version = "2.3"; + + src = fetchFromGitHub { + owner = "swilson"; + repo = pname; + rev = version; + sha256 = "0101lni458y88yrw1wri3pz2cn5jlxln03pa3q2pxaybcyklb9qk"; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 17f6624c42ea..e60a0bbe3851 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -410,6 +410,8 @@ in { apsw = callPackage ../development/python-modules/apsw { }; + aqualogic = callPackage ../development/python-modules/aqualogic { }; + arabic-reshaper = callPackage ../development/python-modules/arabic-reshaper { }; archinfo = callPackage ../development/python-modules/archinfo { };