diff --git a/pkgs/development/python-modules/aiolyric/default.nix b/pkgs/development/python-modules/aiolyric/default.nix new file mode 100644 index 00000000000..0f1a297e6ac --- /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 82e2445af2b..a3efc1beaff 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 { };