From a3eca489bcadd8ca972c8a1ccd3182c465f713e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 15 Jun 2021 14:12:47 +0200 Subject: [PATCH] python3Packages.greeclimate: init at 0.11.8 --- .../python-modules/greeclimate/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/greeclimate/default.nix diff --git a/pkgs/development/python-modules/greeclimate/default.nix b/pkgs/development/python-modules/greeclimate/default.nix new file mode 100644 index 000000000000..5b2e86b5fb58 --- /dev/null +++ b/pkgs/development/python-modules/greeclimate/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, netifaces +, pycryptodome +, pytest-asyncio +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "greeclimate"; + version = "0.11.8"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "cmroche"; + repo = "greeclimate"; + rev = version; + sha256 = "1n46klbhl0gpd5x995mrcr1qfd77hrfm501qns1zhvv0zk8mdsf4"; + }; + + propagatedBuildInputs = [ + netifaces + pycryptodome + ]; + + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "greeclimate" + "greeclimate.device" + "greeclimate.discovery" + "greeclimate.exceptions" + "greeclimate.network" + ]; + + meta = with lib; { + description = "Discover, connect and control Gree based minisplit systems"; + homepage = "https://github.com/cmroche/greeclimate"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0ccb14530a0c..ed66f594d0e0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3029,6 +3029,8 @@ in { greatfet = callPackage ../development/python-modules/greatfet { }; + greeclimate = callPackage ../development/python-modules/greeclimate { }; + green = callPackage ../development/python-modules/green { }; greenlet = callPackage ../development/python-modules/greenlet { };