Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 54 lines 1.1 kB view raw
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.4a"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "baqs"; 23 repo = "pyEzviz"; 24 tag = version; 25 hash = "sha256-OgDplQ6TrK2CZbNgJpoYC8TkK1sG73HdpUyHE+2ZTLk="; 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 # renamed to pyezvizapi 44 passthru.skipBulkUpdate = true; 45 46 meta = with lib; { 47 description = "Python interface for for Ezviz cameras"; 48 homepage = "https://github.com/baqs/pyEzviz/"; 49 changelog = "https://github.com/BaQs/pyEzviz/releases/tag/${version}"; 50 license = with licenses; [ asl20 ]; 51 maintainers = with maintainers; [ fab ]; 52 mainProgram = "pyezviz"; 53 }; 54}