Skip to content

Commit

Permalink
Merge pull request #107956 from JamieMagee/python-tado
Browse files Browse the repository at this point in the history
pythonPackages.python-tado: init at 0.9.0
  • Loading branch information
prusnak authored Dec 30, 2020
2 parents fd2f922 + 7cce65f commit 2435d5e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/python-tado/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ buildPythonPackage, fetchFromGitHub, lib, pytestCheckHook, pythonOlder, requests }:

buildPythonPackage rec {
pname = "python-tado";
version = "0.9.0";

disabled = pythonOlder "3.5";

src = fetchFromGitHub {
owner = "wmalgadey";
repo = "PyTado";
rev = version;
sha256 = "0cr5sxdvjgdrrlhl32rs8pwyay8liyi6prm37y66dn00b41cb5l3";
};

propagatedBuildInputs = [ requests ];
checkInputs = [ pytestCheckHook ];

meta = with lib; {
description =
"Python binding for Tado web API. Pythonize your central heating!";
homepage = "https://github.com/wmalgadey/PyTado";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jamiemagee ];
};
}
2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@
"system_health" = ps: with ps; [ aiohttp-cors ];
"system_log" = ps: with ps; [ aiohttp-cors ];
"systemmonitor" = ps: with ps; [ psutil ];
"tado" = ps: with ps; [ ]; # missing inputs: python-tado
"tado" = ps: with ps; [ python-tado ];
"tag" = ps: with ps; [ ];
"tahoma" = ps: with ps; [ ]; # missing inputs: tahoma-api
"tank_utility" = ps: with ps; [ ]; # missing inputs: tank_utility
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4683,6 +4683,8 @@ in {

python-openems = callPackage ../development/python-modules/python-openems { };

python-tado = callPackage ../development/python-modules/python-tado { };

pkutils = callPackage ../development/python-modules/pkutils { };

plac = callPackage ../development/python-modules/plac { };
Expand Down

0 comments on commit 2435d5e

Please sign in to comment.