depot/third_party/nixpkgs/pkgs/development/python-modules/pyezviz/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

48 lines
973 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, paho-mqtt
, pandas
, pycryptodome
, pythonOlder
, requests
, xmltodict
}:
buildPythonPackage rec {
pname = "pyezviz";
version = "0.2.0.11";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "baqs";
repo = "pyEzviz";
rev = "refs/tags/${version}";
hash = "sha256-XG4+UQL8M5G8Y19PNTBAL51XJRE48qorE8FapaiddYI=";
};
propagatedBuildInputs = [
paho-mqtt
pandas
pycryptodome
requests
xmltodict
];
# Project has no tests. test_cam_rtsp.py is more a sample for using the module
doCheck = false;
pythonImportsCheck = [
"pyezviz"
];
meta = with lib; {
description = "Python interface for for Ezviz cameras";
homepage = "https://github.com/baqs/pyEzviz/";
changelog = "https://github.com/BaQs/pyEzviz/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}