nixpkgs/pkgs/development/python-modules/python-tado/default.nix
Robert Schütz 885318c441 Revert "python3Packages.python-tado: 0.18.16 -> 0.19.2"
This reverts commit bf53e79d90 because it
broke home-assistant.tests.components.tado.
2026-03-05 19:30:00 -08:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
requests,
responses,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "python-tado";
version = "0.18.16";
pyproject = true;
src = fetchFromGitHub {
owner = "wmalgadey";
repo = "PyTado";
tag = finalAttrs.version;
hash = "sha256-jHPTu0/DYJXbSqiJXQzmiK6gmtJf88Y0BV1wj/X+qpc=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [
pytest-cov-stub
pytest-mock
pytestCheckHook
responses
];
disabledTests = [
# network access
"test_interface_with_tado_api"
];
disabledTestPaths = [
# network access
"tests/test_my_tado.py"
"tests/test_my_zone.py"
];
pythonImportsCheck = [ "PyTado" ];
meta = {
description = "Python binding for Tado web API";
homepage = "https://github.com/wmalgadey/PyTado";
changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ jamiemagee ];
mainProgram = "pytado";
};
})