depot/third_party/nixpkgs/pkgs/development/python-modules/python-tado/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

41 lines
926 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "python-tado";
version = "0.17.6";
pyproject = true;
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "wmalgadey";
repo = "PyTado";
rev = "refs/tags/${version}";
hash = "sha256-KcYxUKQuO7TLS4YPg2mrBjP+DMnvZeJokGzwmeM/CvE=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "PyTado" ];
meta = with lib; {
description = "Python binding for Tado web API. Pythonize your central heating!";
homepage = "https://github.com/wmalgadey/PyTado";
changelog = "https://github.com/wmalgadey/PyTado/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jamiemagee ];
mainProgram = "pytado";
};
}