2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "pytado";
|
|
|
|
version = "0.13.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wmalgadey";
|
2021-12-06 16:07:01 +00:00
|
|
|
repo = "PyTado";
|
|
|
|
# Upstream hasn't tagged 0.13.0 yet
|
|
|
|
rev = "2a243174e9ae01ef7adae940ecc6e340992ab28d";
|
|
|
|
sha256 = "Y1FxEzs/AF0ZTPdOK/1v+2U2fidfu+AmZbPddJCWIFc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"PyTado"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Python binding for Tado web API";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/wmalgadey/PyTado";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ elseym ];
|
|
|
|
};
|
|
|
|
}
|