From 7e1a972bc0f15f91837b6aff9bc898bc6d130e04 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 8 Apr 2021 01:29:52 +0200 Subject: [PATCH] python3Packages.homepluscontrol: init at 0.0.5 --- .../homepluscontrol/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/homepluscontrol/default.nix diff --git a/pkgs/development/python-modules/homepluscontrol/default.nix b/pkgs/development/python-modules/homepluscontrol/default.nix new file mode 100644 index 000000000000..680c4a5a7266 --- /dev/null +++ b/pkgs/development/python-modules/homepluscontrol/default.nix @@ -0,0 +1,43 @@ +{ lib +, aiohttp +, aioresponses +, buildPythonPackage +, fetchFromGitHub +, pyjwt +, pytestCheckHook +, pythonOlder +, yarl +}: + +buildPythonPackage rec { + pname = "homepluscontrol"; + version = "0.0.5"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "chemaaa"; + repo = pname; + rev = version; + sha256 = "1nd3a7nhh1xb70cdh2h2bimwbffvpc3457smyzr9fqkjwfbcrr93"; + }; + + propagatedBuildInputs = [ + aiohttp + pyjwt + yarl + ]; + + checkInputs = [ + aioresponses + pytestCheckHook + ]; + + pythonImportsCheck = [ "homepluscontrol" ]; + + meta = with lib; { + description = "Python API to interact with the Legrand Eliot Home and Control"; + homepage = "https://github.com/chemaaa/homepluscontrol"; + license = with licenses; [ gpl3Only ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 10da6e1f33ca..3c1323a823ef 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3112,6 +3112,8 @@ in { homeassistant-pyozw = callPackage ../development/python-modules/homeassistant-pyozw { }; + homepluscontrol = callPackage ../development/python-modules/homepluscontrol { }; + hoomd-blue = toPythonModule (callPackage ../development/python-modules/hoomd-blue { inherit python; });