depot/third_party/nixpkgs/pkgs/development/python-modules/python-tado/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

39 lines
809 B
Nix

{ buildPythonPackage
, fetchFromGitHub
, lib
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "python-tado";
version = "0.17.3";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "wmalgadey";
repo = "PyTado";
# https://github.com/wmalgadey/PyTado/issues/62
rev = "refs/tags/${version}";
hash = "sha256-whpNYiAb2cqKI4m0HJN2lPt51FLuEzrkrRTSWs6uznU=";
};
propagatedBuildInputs = [
requests
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description =
"Python binding for Tado web API. Pythonize your central heating!";
homepage = "https://github.com/wmalgadey/PyTado";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jamiemagee ];
};
}