1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5}:
6
7buildPythonPackage rec {
8 pname = "libpyfoscam";
9 version = "1.2.2";
10 format = "setuptools";
11
12 disabled = pythonOlder "3.7";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-FLPerVzx2+3f5biiqt0JHJjBuMIalUBkY+bGb2ShVao=";
17 };
18
19 # tests need access to a camera
20 doCheck = false;
21
22 pythonImportsCheck = [
23 "libpyfoscam"
24 ];
25
26 meta = with lib; {
27 description = "Python Library for Foscam IP Cameras";
28 homepage = "https://github.com/krmarien/python-foscam";
29 license = licenses.lgpl3Plus;
30 maintainers = with maintainers; [ dotlambda ];
31 };
32}