about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hahomematic
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-12-05 13:22:15 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-12-05 13:22:15 +0100
commitc1d0a084a990f6057988dfd1e4de6de1cf847f5d (patch)
tree36be81ad3d771993fff8a55356736682266b7edc /pkgs/development/python-modules/hahomematic
parent2707eaa1129888f1f9fddc9d338dea06c3b67689 (diff)
python3Packages.hahomematic: init at 0.0.16
Diffstat (limited to 'pkgs/development/python-modules/hahomematic')
-rw-r--r--pkgs/development/python-modules/hahomematic/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hahomematic/default.nix b/pkgs/development/python-modules/hahomematic/default.nix
new file mode 100644
index 0000000000000..3b50bd1dfd54d
--- /dev/null
+++ b/pkgs/development/python-modules/hahomematic/default.nix
@@ -0,0 +1,43 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, aiohttp
+, pythonOlder
+, voluptuous
+, websocket-client
+, xmltodict
+}:
+
+buildPythonPackage rec {
+  pname = "hahomematic";
+  version = "0.0.16";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.8";
+
+  src = fetchFromGitHub {
+    owner = "danielperna84";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-c+0CjERZX55A1Y73tqf6awe68TPw5pqXEIlBD5C8L8c=";
+  };
+
+  propagatedBuildInputs = [
+    aiohttp
+    voluptuous
+  ];
+
+  # Project has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "hahomematic"
+  ];
+
+  meta = with lib; {
+    description = "Python module to interact with HomeMatic devices";
+    homepage = "https://github.com/danielperna84/hahomematic";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}