depot/third_party/nixpkgs/pkgs/development/python-modules/python-tado/default.nix

40 lines
825 B
Nix
Raw Normal View History

{ buildPythonPackage
, fetchFromGitHub
, lib
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage {
pname = "python-tado";
version = "0.16.0";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "wmalgadey";
repo = "PyTado";
# https://github.com/wmalgadey/PyTado/issues/62
rev = "674dbc450170a380e76460c22d6ba943dfedb8e9";
hash = "sha256-gduqQVw/a64aDzTHFmgZu7OVB53jZb7L5vofzL3Ho6s=";
};
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 ];
};
}