Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, paho-mqtt 5, pandas 6, pycryptodome 7, pythonOlder 8, requests 9, xmltodict 10}: 11 12buildPythonPackage rec { 13 pname = "pyezviz"; 14 version = "0.2.0.17"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "baqs"; 21 repo = "pyEzviz"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-Yc1M/O08PlRb0+YIB4etscaWMnb+r9fkMje94Tvcwus="; 24 }; 25 26 propagatedBuildInputs = [ 27 paho-mqtt 28 pandas 29 pycryptodome 30 requests 31 xmltodict 32 ]; 33 34 # Project has no tests. test_cam_rtsp.py is more a sample for using the module 35 doCheck = false; 36 37 pythonImportsCheck = [ 38 "pyezviz" 39 ]; 40 41 meta = with lib; { 42 description = "Python interface for for Ezviz cameras"; 43 homepage = "https://github.com/baqs/pyEzviz/"; 44 changelog = "https://github.com/BaQs/pyEzviz/releases/tag/${version}"; 45 license = with licenses; [ asl20 ]; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}