2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildPythonPackage rec {
|
2021-01-05 17:05:55 +00:00
|
|
|
pname = "python-tado";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.17.6";
|
|
|
|
pyproject = true;
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wmalgadey";
|
|
|
|
repo = "PyTado";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-KcYxUKQuO7TLS4YPg2mrBjP+DMnvZeJokGzwmeM/CvE=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [ requests ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "PyTado" ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-25 14:12:00 +00:00
|
|
|
description = "Python binding for Tado web API. Pythonize your central heating!";
|
2021-01-05 17:05:55 +00:00
|
|
|
homepage = "https://github.com/wmalgadey/PyTado";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${version}";
|
2021-01-05 17:05:55 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
2024-05-15 15:35:15 +00:00
|
|
|
mainProgram = "pytado";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
}
|