about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2021-04-24 17:34:15 +0200
committerGitHub <noreply@github.com>2021-04-24 17:34:15 +0200
commit9f485497624f61a1b1e76aaa22306e8521289bdf (patch)
treeb1c5293c18d749cc4754fb8803251eb3034bb322 /pkgs/development
parentd243aae0f33967d7f379405736b59e37b241770b (diff)
parent766e69873920d62946613570572177edf4abb8b8 (diff)
Merge pull request #120532 from fabaff/homeconnect
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/homeconnect/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/homeconnect/default.nix b/pkgs/development/python-modules/homeconnect/default.nix
new file mode 100644
index 0000000000000..98aab26ffac80
--- /dev/null
+++ b/pkgs/development/python-modules/homeconnect/default.nix
@@ -0,0 +1,33 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, requests
+, requests_oauthlib
+}:
+
+buildPythonPackage rec {
+  pname = "homeconnect";
+  version = "0.6.3";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0n4h4mi23zw3v6fbkz17fa6kkl5v9bfmj0p57jvfzcfww511y9mn";
+  };
+
+  propagatedBuildInputs = [
+    requests
+    requests_oauthlib
+  ];
+
+  # Project has no tests
+  doCheck = false;
+  pythonImportsCheck = [ "homeconnect" ];
+
+  meta = with lib; {
+    description = "Python client for the BSH Home Connect REST API";
+    homepage = "https://github.com/DavidMStraub/homeconnect";
+    changelog = "https://github.com/DavidMStraub/homeconnect/releases/tag/v${version}";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}