diff --git a/pkgs/development/python-modules/aiopylgtv/default.nix b/pkgs/development/python-modules/aiopylgtv/default.nix new file mode 100644 index 00000000000..200bc41b7a5 --- /dev/null +++ b/pkgs/development/python-modules/aiopylgtv/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, numpy +, pythonOlder +, sqlitedict +, websockets +}: + +buildPythonPackage rec { + pname = "aiopylgtv"; + version = "0.4.0"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "bendavid"; + repo = pname; + rev = version; + sha256 = "0x0xcnlz42arsp53zlq5wyv9pwif1in8j2pv48gh0pkdnz9s86b6"; + }; + + propagatedBuildInputs = [ + numpy + sqlitedict + websockets + ]; + + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "aiopylgtv" ]; + + meta = with lib; { + description = "Python library to control webOS based LG TV units"; + homepage = "https://github.com/bendavid/aiopylgtv"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 2836f8a64e3..f1e5dcb376f 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -924,7 +924,7 @@ "waze_travel_time" = ps: with ps; [ WazeRouteCalculator ]; "weather" = ps: with ps; [ ]; "webhook" = ps: with ps; [ aiohttp-cors ]; - "webostv" = ps: with ps; [ ]; # missing inputs: aiopylgtv + "webostv" = ps: with ps; [ aiopylgtv ]; "websocket_api" = ps: with ps; [ aiohttp-cors ]; "wemo" = ps: with ps; [ ]; # missing inputs: pywemo "whois" = ps: with ps; [ python-whois ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fb7dc756488..eb7811253cc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -284,6 +284,8 @@ in { aiopulse = callPackage ../development/python-modules/aiopulse { }; + aiopylgtv = callPackage ../development/python-modules/aiopylgtv { }; + aiorecollect = callPackage ../development/python-modules/aiorecollect { }; aioredis = callPackage ../development/python-modules/aioredis { };