summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/aiosomecomfort/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/aiosomecomfort/default.nix')
-rw-r--r--pkgs/development/python-modules/aiosomecomfort/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aiosomecomfort/default.nix b/pkgs/development/python-modules/aiosomecomfort/default.nix
new file mode 100644
index 000000000000..104d404a6023
--- /dev/null
+++ b/pkgs/development/python-modules/aiosomecomfort/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, aiohttp
+, prettytable
+, mock
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+ pname = "aiosomecomfort";
+ version = "0.0.3";
+
+ format = "setuptools";
+
+ src = fetchFromGitHub {
+ owner = "mkmer";
+ repo = "AIOSomecomfort";
+ rev = "refs/tags/${version}";
+ hash = "sha256-Qw0KR934GS7AuT3nRYaunypt091fZLRioVbNOp9JesY=";
+ };
+
+ postPatch = ''
+ # https://github.com/mkmer/AIOSomecomfort/issues/1
+ mv aiosomecomfort AIOSomecomfort
+ '';
+
+ propagatedBuildInputs = [
+ aiohttp
+ prettytable
+ ];
+
+ checkInputs = [
+ mock
+ pytestCheckHook
+ ];
+
+ # SyntaxError in test.py
+ doCheck = false;
+
+ meta = {
+ description = "AsyicIO client for US models of Honeywell Thermostats";
+ homepage = "https://github.com/mkmer/AIOSomecomfort";
+ license = lib.licenses.gpl3Only;
+ maintainers = with lib.maintainers; [ dotlambda ];
+ };
+}