From bb81f8ff84b5f59f9995e15871c6b3ffb1f5b9d4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Mar 2021 20:14:30 +0100 Subject: [PATCH] python3Packages.aiolyric: init at 1.0.5 --- .../python-modules/aiolyric/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/aiolyric/default.nix diff --git a/pkgs/development/python-modules/aiolyric/default.nix b/pkgs/development/python-modules/aiolyric/default.nix new file mode 100644 index 000000000000..0f1a297e6ac7 --- /dev/null +++ b/pkgs/development/python-modules/aiolyric/default.nix @@ -0,0 +1,37 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "aiolyric"; + version = "1.0.5"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "timmo001"; + repo = pname; + rev = "v${version}"; + sha256 = "00kq3dsjcfhjzn585phb3g168dbg53wrqq7g8a4gljs49c2mf5qx"; + }; + + propagatedBuildInputs = [ aiohttp ]; + + checkInputs = [ pytestCheckHook ]; + + disabledTests = [ + # AssertionError, https://github.com/timmo001/aiolyric/issues/5 + "test_location" + ]; + pythonImportsCheck = [ "aiolyric" ]; + + meta = with lib; { + description = "Python module for the Honeywell Lyric Platform"; + homepage = "https://github.com/timmo001/aiolyric"; + 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 16c06ad170b9..6c17f6e1c291 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -280,6 +280,8 @@ in { aiolifx-effects = callPackage ../development/python-modules/aiolifx-effects { }; + aiolyric = callPackage ../development/python-modules/aiolyric { }; + aiomultiprocess = callPackage ../development/python-modules/aiomultiprocess { }; aiomysql = callPackage ../development/python-modules/aiomysql { };