diff --git a/pkgs/development/python-modules/pytado/default.nix b/pkgs/development/python-modules/pytado/default.nix new file mode 100644 index 00000000000..a1c70b4c205 --- /dev/null +++ b/pkgs/development/python-modules/pytado/default.nix @@ -0,0 +1,21 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub }: + +buildPythonPackage rec { + pname = "PyTado"; + version = "0.2.7"; + + src = fetchFromGitHub { + owner = "wmalgadey"; + repo = pname; + # Upstream hasn't tagged this release yet. This commit fixes the build. + rev = "79a5dfdf75cd9a3e1a1ee8a8ff0d08923aebda7b"; + sha256 = "14xdfw4913g4j4h576hjbigm7fiw8k0dc8s98gh2ag9xrc2ifgr0"; + }; + + meta = with stdenv.lib; { + description = "Python binding for Tado web API. Pythonize your central heating!"; + homepage = https://github.com/wmalgadey/PyTado; + license = licenses.gpl3; + maintainers = with maintainers; [ elseym ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 2281ac57ed5..c9f0c4964cc 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -251,7 +251,7 @@ "climate.radiotherm" = ps: with ps; [ ]; "climate.sensibo" = ps: with ps; [ ]; "climate.spider" = ps: with ps; [ ]; - "climate.tado" = ps: with ps; [ ]; + "climate.tado" = ps: with ps; [ pytado ]; "climate.tesla" = ps: with ps; [ ]; "climate.toon" = ps: with ps; [ ]; "climate.touchline" = ps: with ps; [ ]; @@ -375,7 +375,7 @@ "device_tracker.sky_hub" = ps: with ps; [ ]; "device_tracker.snmp" = ps: with ps; [ pysnmp ]; "device_tracker.swisscom" = ps: with ps; [ ]; - "device_tracker.tado" = ps: with ps; [ ]; + "device_tracker.tado" = ps: with ps; [ pytado ]; "device_tracker.tesla" = ps: with ps; [ ]; "device_tracker.thomson" = ps: with ps; [ ]; "device_tracker.tile" = ps: with ps; [ ]; @@ -1124,7 +1124,7 @@ "sensor.synologydsm" = ps: with ps; [ ]; "sensor.systemmonitor" = ps: with ps; [ psutil ]; "sensor.sytadin" = ps: with ps; [ beautifulsoup4 ]; - "sensor.tado" = ps: with ps; [ ]; + "sensor.tado" = ps: with ps; [ pytado ]; "sensor.tahoma" = ps: with ps; [ ]; "sensor.tank_utility" = ps: with ps; [ ]; "sensor.tautulli" = ps: with ps; [ ]; @@ -1321,7 +1321,7 @@ "switch.zoneminder" = ps: with ps; [ ]; "switch.zwave" = ps: with ps; [ ]; "system_log" = ps: with ps; [ aiohttp-cors ]; - "tado" = ps: with ps; [ ]; + "tado" = ps: with ps; [ pytado ]; "tahoma" = ps: with ps; [ ]; "telegram_bot" = ps: with ps; [ python-telegram-bot ]; "telegram_bot.broadcast" = ps: with ps; [ ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4196663b413..7656498e975 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5147,6 +5147,8 @@ in { pybotvac = callPackage ../development/python-modules/pybotvac { }; + pytado = callPackage ../development/python-modules/pytado { }; + }); in fix' (extends overrides packages)