Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
requests,
responses,
setuptools,
}:
buildPythonPackage rec {
pname = "python-tado";
version = "0.18.15";
pyproject = true;
src = fetchFromGitHub {
owner = "wmalgadey";
repo = "PyTado";
tag = version;
hash = "sha256-FUnD5JVS816XQYqXGSDnypqcYuKVhEeFIFcENf8BkcU=";
};
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/${src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ jamiemagee ];
mainProgram = "pytado";
};
}