From 112dfd0e21d71a4665a5b492dfd291974f4c0c6b Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Wed, 30 Dec 2020 11:49:06 +0100 Subject: [PATCH] pythonPackages.python-tado: init at 0.9.0 --- .../python-modules/python-tado/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/python-tado/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0ed56d685d5f..f39b5e445e19 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4683,6 +4683,8 @@ in { python-openems = callPackage ../development/python-modules/python-openems { }; + python-tado = callPackage ../development/python-modules/python-tado { }; + pkutils = callPackage ../development/python-modules/pkutils { }; plac = callPackage ../development/python-modules/plac { };