1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 paho-mqtt,
6 pandas,
7 pycryptodome,
8 requests,
9 setuptools,
10 xmltodict,
11}:
12
13buildPythonPackage rec {
14 pname = "pyezvizapi";
15 version = "1.0.2.4";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "RenierM26";
20 repo = "pyEzvizApi";
21 tag = version;
22 hash = "sha256-kfaOP/VKY4ZzmipY9REXtbVSCOD6U+/eBhDntfGrsQA=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 paho-mqtt
29 pandas
30 pycryptodome
31 requests
32 xmltodict
33 ];
34
35 pythonImportsCheck = [ "pyezvizapi" ];
36
37 # test_cam_rtsp.py is not actually a unit test
38 doCheck = false;
39
40 meta = {
41 description = "Python interface for for Ezviz cameras";
42 homepage = "https://github.com/RenierM26/pyEzvizApi";
43 changelog = "https://github.com/RenierM26/pyEzvizApi/releases/tag/${src.tag}";
44 license = lib.licenses.asl20;
45 maintainers = with lib.maintainers; [ dotlambda ];
46 mainProgram = "pyezviz";
47 };
48}