1{ buildPythonPackage
2, fetchFromGitHub
3, lib
4, pytestCheckHook
5, pythonOlder
6, requests
7}:
8
9buildPythonPackage {
10 pname = "python-tado";
11 version = "0.16.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.5";
15
16 src = fetchFromGitHub {
17 owner = "wmalgadey";
18 repo = "PyTado";
19 # https://github.com/wmalgadey/PyTado/issues/62
20 rev = "674dbc450170a380e76460c22d6ba943dfedb8e9";
21 hash = "sha256-gduqQVw/a64aDzTHFmgZu7OVB53jZb7L5vofzL3Ho6s=";
22 };
23
24 propagatedBuildInputs = [
25 requests
26 ];
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 ];
31
32 meta = with lib; {
33 description =
34 "Python binding for Tado web API. Pythonize your central heating!";
35 homepage = "https://github.com/wmalgadey/PyTado";
36 license = licenses.gpl3Plus;
37 maintainers = with maintainers; [ jamiemagee ];
38 };
39}