2021-04-12 18:23:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-06-28 23:13:55 +00:00
|
|
|
, paho-mqtt
|
2021-04-12 18:23:04 +00:00
|
|
|
, pandas
|
2021-06-28 23:13:55 +00:00
|
|
|
, pycryptodome
|
2021-04-12 18:23:04 +00:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2021-06-28 23:13:55 +00:00
|
|
|
, xmltodict
|
2021-04-12 18:23:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyezviz";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.2.2.3";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baqs";
|
|
|
|
repo = "pyEzviz";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-HZLWpoo0luAqqwLA3t7cDh0yVP6znrzMoUg7cuexd28=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
paho-mqtt
|
2021-04-12 18:23:04 +00:00
|
|
|
pandas
|
2021-06-28 23:13:55 +00:00
|
|
|
pycryptodome
|
2021-04-12 18:23:04 +00:00
|
|
|
requests
|
2021-06-28 23:13:55 +00:00
|
|
|
xmltodict
|
2021-04-12 18:23:04 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests. test_cam_rtsp.py is more a sample for using the module
|
|
|
|
doCheck = false;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyezviz"
|
|
|
|
];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface for for Ezviz cameras";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pyezviz";
|
2021-04-12 18:23:04 +00:00
|
|
|
homepage = "https://github.com/baqs/pyEzviz/";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/BaQs/pyEzviz/releases/tag/${version}";
|
2021-04-12 18:23:04 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|