1{ buildPythonPackage, fetchFromGitHub, lib, pytestCheckHook, pythonOlder, requests }:
2
3buildPythonPackage rec {
4 pname = "python-tado";
5 version = "0.12.0";
6
7 disabled = pythonOlder "3.5";
8
9 src = fetchFromGitHub {
10 owner = "wmalgadey";
11 repo = "PyTado";
12 rev = version;
13 sha256 = "sha256-n+H6H2ORLizv9cn1P5Cd8wHDWMNonPrs+x+XMQbEzZQ=";
14 };
15
16 propagatedBuildInputs = [ requests ];
17 checkInputs = [ pytestCheckHook ];
18
19 meta = with lib; {
20 description =
21 "Python binding for Tado web API. Pythonize your central heating!";
22 homepage = "https://github.com/wmalgadey/PyTado";
23 license = licenses.gpl3Plus;
24 maintainers = with maintainers; [ jamiemagee ];
25 };
26}