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 02:25:51 +0200
committerGitHub <noreply@github.com>2021-04-24 02:25:51 +0200
commitbf18034b984745c199c6cb65bac9a28d3b0121e7 (patch)
treefb4e1359b2d3f0ba680d148463fc4299e7d30eb5 /pkgs/development
parent8019e661aba616fba19a7ea21eae4fd832f3941d (diff)
parentd312288e17991738c34572190b9759bc9672f7ba (diff)
Merge pull request #120248 from fabaff/pydroid-ipcam
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/pydroid-ipcam/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pydroid-ipcam/default.nix b/pkgs/development/python-modules/pydroid-ipcam/default.nix
new file mode 100644
index 0000000000000..ca171edde44d1
--- /dev/null
+++ b/pkgs/development/python-modules/pydroid-ipcam/default.nix
@@ -0,0 +1,36 @@
+{ lib
+, aiohttp
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
+, yarl
+}:
+
+buildPythonPackage rec {
+  pname = "pydroid-ipcam";
+  version = "unstable-2021-04-16";
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "home-assistant-libs";
+    repo = pname;
+    rev = "9f22682c6f9182aa5e42762f52223337b8b6909c";
+    sha256 = "1lvppyzmwg0fp8zch11j51an4sb074yl9shzanakvjmbqpnif6s6";
+  };
+
+  propagatedBuildInputs = [
+    aiohttp
+    yarl
+  ];
+
+  # Project has no tests
+  doCheck = false;
+  pythonImportsCheck = [ "pydroid_ipcam" ];
+
+  meta = with lib; {
+    description = "Python library for Android IP Webcam";
+    homepage = "https://github.com/home-assistant-libs/pydroid-ipcam";
+    license = with licenses; [ asl20 ];
+    maintainers = with maintainers; [ fab ];
+  };
+}