1{ buildPythonPackage 2, fetchFromGitHub 3, lib 4, pytestCheckHook 5, pythonOlder 6, requests 7}: 8 9buildPythonPackage rec { 10 pname = "python-tado"; 11 version = "0.17.2"; 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 = "refs/tags/${version}"; 21 hash = "sha256-w1qtSEpnZCs7+M/0Gywz9AeMxUzz2csHKm9SxBKzmz4="; 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}