1{
2 buildPythonPackage,
3 defusedxml,
4 fetchFromGitHub,
5 lib,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "libpyfoscamcgi";
11 version = "0.0.7";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "Foscam-wangzhengyu";
16 repo = "libfoscamcgi";
17 tag = "v${version}";
18 hash = "sha256-QthzyMdZ2iberDmbeqf6MaUv8lH5xhlZLL8ZAlapvIk=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [
24 defusedxml
25 ];
26
27 pythonImportsCheck = [ "libpyfoscamcgi" ];
28
29 # tests need access to a camera
30 doCheck = false;
31
32 meta = {
33 changelog = "https://github.com/Foscam-wangzhengyu/libfoscamcgi/releases/tag/${src.tag}";
34 description = "Python Library for Foscam IP Cameras";
35 homepage = "https://github.com/Foscam-wangzhengyu/libfoscamcgi";
36 license = lib.licenses.lgpl3Plus;
37 maintainers = with lib.maintainers; [ dotlambda ];
38 };
39}