1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, yarl
7}:
8
9buildPythonPackage rec {
10 pname = "pydroid-ipcam";
11 version = "unstable-2021-06-01";
12 disabled = pythonOlder "3.7";
13
14 src = fetchFromGitHub {
15 owner = "home-assistant-libs";
16 repo = pname;
17 rev = "3ca14ff178f3506a6a91d8736deea8f06e9ad1c1";
18 sha256 = "0w81pl5fya17hg5xgba2vgxnylfd8jc70il575wdz2pw6z6ihj3s";
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}