2021-04-09 18:25:00 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-06-06 16:06:18 +01:00
|
|
|
, paho-mqtt
|
2021-04-09 18:25:00 +01:00
|
|
|
, pandas
|
2021-06-06 16:06:18 +01:00
|
|
|
, pycryptodome
|
2021-04-09 18:25:00 +01:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2021-06-06 16:06:18 +01:00
|
|
|
, xmltodict
|
2021-04-09 18:25:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyezviz";
|
2021-09-25 22:06:04 +01:00
|
|
|
version = "0.1.9.4";
|
2021-04-09 18:25:00 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baqs";
|
|
|
|
repo = "pyEzviz";
|
|
|
|
rev = version;
|
2021-09-25 22:06:04 +01:00
|
|
|
sha256 = "sha256-MS4icrTjjcPx3Pb8fpcKAd/JXWqknqp9wb4lQmRwFls=";
|
2021-04-09 18:25:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-06-06 16:06:18 +01:00
|
|
|
paho-mqtt
|
2021-04-09 18:25:00 +01:00
|
|
|
pandas
|
2021-06-06 16:06:18 +01:00
|
|
|
pycryptodome
|
2021-04-09 18:25:00 +01:00
|
|
|
requests
|
2021-06-06 16:06:18 +01:00
|
|
|
xmltodict
|
2021-04-09 18:25:00 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests. test_cam_rtsp.py is more a sample for using the module
|
|
|
|
doCheck = false;
|
2021-06-06 16:06:18 +01:00
|
|
|
|
2021-04-09 18:25:00 +01:00
|
|
|
pythonImportsCheck = [ "pyezviz" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface for for Ezviz cameras";
|
|
|
|
homepage = "https://github.com/baqs/pyEzviz/";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|