Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at flake-libs 49 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 ciso8601, 5 fetchFromGitHub, 6 httpx, 7 pythonOlder, 8 setuptools, 9 yarl, 10 zeep, 11}: 12 13buildPythonPackage rec { 14 pname = "onvif-zeep-async"; 15 version = "3.2.5"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "openvideolibs"; 22 repo = "python-onvif-zeep-async"; 23 tag = "v${version}"; 24 hash = "sha256-tEJTVdFQXr2nz0DkuIUjNDSSZUdD457SMrNAUqqsiH8="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 ciso8601 31 httpx 32 yarl 33 zeep 34 ] ++ zeep.optional-dependencies.async; 35 36 pythonImportsCheck = [ "onvif" ]; 37 38 # Tests are not shipped 39 doCheck = false; 40 41 meta = with lib; { 42 description = "ONVIF Client Implementation in Python"; 43 homepage = "https://github.com/hunterjm/python-onvif-zeep-async"; 44 changelog = "https://github.com/openvideolibs/python-onvif-zeep-async/releases/tag/v${version}"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ fab ]; 47 mainProgram = "onvif-cli"; 48 }; 49}