summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-tado
diff options
context:
space:
mode:
authorJamie Magee <jamie.magee@gmail.com>2020-12-30 11:49:06 +0100
committerJamie Magee <jamie.magee@gmail.com>2020-12-30 20:14:26 +0100
commit112dfd0e21d71a4665a5b492dfd291974f4c0c6b (patch)
treea97be465b6a84f7727a10a49c48ecf0ce260f9e6 /pkgs/development/python-modules/python-tado
parentf6188ca545660da0aa722e7a50c1a3952da0a5ef (diff)
pythonPackages.python-tado: init at 0.9.0
Diffstat (limited to 'pkgs/development/python-modules/python-tado')
-rw-r--r--pkgs/development/python-modules/python-tado/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-tado/default.nix b/pkgs/development/python-modules/python-tado/default.nix
new file mode 100644
index 000000000000..98c03b893093
--- /dev/null
+++ b/pkgs/development/python-modules/python-tado/default.nix
@@ -0,0 +1,26 @@
+{ buildPythonPackage, fetchFromGitHub, lib, pytestCheckHook, pythonOlder, requests }:
+
+buildPythonPackage rec {
+ pname = "python-tado";
+ version = "0.9.0";
+
+ disabled = pythonOlder "3.5";
+
+ src = fetchFromGitHub {
+ owner = "wmalgadey";
+ repo = "PyTado";
+ rev = version;
+ sha256 = "0cr5sxdvjgdrrlhl32rs8pwyay8liyi6prm37y66dn00b41cb5l3";
+ };
+
+ propagatedBuildInputs = [ requests ];
+ checkInputs = [ 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 ];
+ };
+}