git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #120248 from fabaff/pydroid-ipcam
commitbf18034b984745c199c6cb65bac9a28d3b0121e7 authorMartin Weinelt <mweinelt@users.noreply.github.com> dateSat 24 Apr 2021, 02:25 (6 years ago) parent8019e66d312288
3 files changed+39−1
pkgs/development/python-modules/pydroid-ipcam/default.nix+36 pkgs/servers/home-assistant/component-packages.nix+1−1 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pydroid-ipcam/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, aiohttp
3+, buildPythonPackage
4+, fetchFromGitHub
5+, pythonOlder
6+, yarl
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "pydroid-ipcam";
11+ version = "unstable-2021-04-16";
12+ disabled = pythonOlder "3.7";
13+
14+ src = fetchFromGitHub {
15+ owner = "home-assistant-libs";
16+ repo = pname;
17+ rev = "9f22682c6f9182aa5e42762f52223337b8b6909c";
18+ sha256 = "1lvppyzmwg0fp8zch11j51an4sb074yl9shzanakvjmbqpnif6s6";
19+ };
20+
21+ propagatedBuildInputs = [
22+ aiohttp
23+ yarl
24+ ];
25+
26+ # Project has no tests
27+ doCheck = false;
28+ pythonImportsCheck = [ "pydroid_ipcam" ];
29+
30+ meta = with lib; {
31+ description = "Python library for Android IP Webcam";
32+ homepage = "https://github.com/home-assistant-libs/pydroid-ipcam";
33+ license = with licenses; [ asl20 ];
34+ maintainers = with maintainers; [ fab ];
35+ };
36+}
pkgs/servers/home-assistant/component-packages.nix+1−1
@@ -32,7 +32,7 @@
3232 "amcrest" = ps: with ps; [ amcrest ha-ffmpeg ];
3333 "ampio" = ps: with ps; [ ]; # missing inputs: asmog
3434 "analytics" = ps: with ps; [ aiohttp-cors ];
35− "android_ip_webcam" = ps: with ps; [ ]; # missing inputs: pydroid-ipcam
35+ "android_ip_webcam" = ps: with ps; [ pydroid-ipcam ];
3636 "androidtv" = ps: with ps; [ adb-shell androidtv pure-python-adb ];
3737 "anel_pwrctrl" = ps: with ps; [ ]; # missing inputs: anel_pwrctrl-homeassistant
3838 "anthemav" = ps: with ps; [ ]; # missing inputs: anthemav
pkgs/top-level/python-packages.nix+2
@@ -5821,6 +5821,8 @@ in {
58215821
58225822 pydrive = callPackage ../development/python-modules/pydrive { };
58235823
5824+ pydroid-ipcam = callPackage ../development/python-modules/pydroid-ipcam { };
5825+
58245826 pydsdl = callPackage ../development/python-modules/pydsdl { };
58255827
58265828 pydub = callPackage ../development/python-modules/pydub { };