1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, requests
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "pytado";
11 version = "0.17.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "wmalgadey";
18 repo = "PyTado";
19 rev = "refs/tags/${version}";
20 sha256 = "sha256-w1qtSEpnZCs7+M/0Gywz9AeMxUzz2csHKm9SxBKzmz4=";
21 };
22
23 propagatedBuildInputs = [
24 requests
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "PyTado"
33 ];
34
35 meta = with lib; {
36 description = "Python binding for Tado web API";
37 homepage = "https://github.com/wmalgadey/PyTado";
38 changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${version}";
39 license = licenses.gpl3Only;
40 maintainers = with maintainers; [ ];
41 };
42}