summary refs log tree commit diff
path: root/pkgs/development/python-modules/devolo-home-control-api
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-01-19 18:41:54 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-01-19 09:47:49 -0800
commit98dcad33fa45a47442d32f641f3b435c1dd62ced (patch)
tree941d8a306fe7b91686c8a50aca73aaf639ec2840 /pkgs/development/python-modules/devolo-home-control-api
parent94f850c3d1dc08fac3addad38573c422594dab59 (diff)
downloadnixpkgs-98dcad33fa45a47442d32f641f3b435c1dd62ced.tar
nixpkgs-98dcad33fa45a47442d32f641f3b435c1dd62ced.tar.gz
nixpkgs-98dcad33fa45a47442d32f641f3b435c1dd62ced.tar.bz2
nixpkgs-98dcad33fa45a47442d32f641f3b435c1dd62ced.tar.lz
nixpkgs-98dcad33fa45a47442d32f641f3b435c1dd62ced.tar.xz
nixpkgs-98dcad33fa45a47442d32f641f3b435c1dd62ced.tar.zst
nixpkgs-98dcad33fa45a47442d32f641f3b435c1dd62ced.zip
python3Packages.devolo-home-control-api: init at 0.16.0
Diffstat (limited to 'pkgs/development/python-modules/devolo-home-control-api')
-rw-r--r--pkgs/development/python-modules/devolo-home-control-api/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/devolo-home-control-api/default.nix b/pkgs/development/python-modules/devolo-home-control-api/default.nix
new file mode 100644
index 00000000000..1e388fd3a11
--- /dev/null
+++ b/pkgs/development/python-modules/devolo-home-control-api/default.nix
@@ -0,0 +1,49 @@
+{ lib
+, aiohttp
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+, pytest-cov
+, pytest-mock
+, requests
+, zeroconf
+, websocket_client
+, pytest-runner
+}:
+
+buildPythonPackage rec {
+  pname = "devolo-home-control-api";
+  version = "0.16.0";
+
+  src = fetchFromGitHub {
+    owner = "2Fake";
+    repo = "devolo_home_control_api";
+    rev = "v${version}";
+    sha256 = "19zzdbx0dxlm8pq0yk00nn9gqqblgpp16fgl7z6a98hsa6459zzb";
+  };
+
+  nativeBuildInputs = [ pytest-runner ];
+
+  propagatedBuildInputs = [
+    requests
+    zeroconf
+    websocket_client
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+    pytest-cov
+    pytest-mock
+  ];
+
+  # Disable test that requires network access
+  disabledTests = [ "test__on_pong" ];
+  pythonImportsCheck = [ "devolo_home_control_api" ];
+
+  meta = with lib; {
+    description = "Python library to work with devolo Home Control";
+    homepage = "https://github.com/2Fake/devolo_home_control_api";
+    license = with licenses; [ gpl3Only ];
+    maintainers = with maintainers; [ fab ];
+  };
+}