1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 paho-mqtt,
6 pandas,
7 pycryptodome,
8 pythonOlder,
9 requests,
10 setuptools,
11 xmltodict,
12}:
13
14buildPythonPackage rec {
15 pname = "pyezviz";
16 version = "0.2.2.4";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "baqs";
23 repo = "pyEzviz";
24 rev = "refs/tags/${version}";
25 hash = "sha256-ngQu9g0qvJ3zDaTdGqJDGRoMhnGYdp5jHDoPiuXOwGs=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 paho-mqtt
32 pandas
33 pycryptodome
34 requests
35 xmltodict
36 ];
37
38 # Project has no tests. test_cam_rtsp.py is more a sample for using the module
39 doCheck = false;
40
41 pythonImportsCheck = [ "pyezviz" ];
42
43 meta = with lib; {
44 description = "Python interface for for Ezviz cameras";
45 homepage = "https://github.com/baqs/pyEzviz/";
46 changelog = "https://github.com/BaQs/pyEzviz/releases/tag/${version}";
47 license = with licenses; [ asl20 ];
48 maintainers = with maintainers; [ fab ];
49 mainProgram = "pyezviz";
50 };
51}