Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 mock, 7 pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "uvcclient"; 12 version = "0.11.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "kk7ds"; 17 repo = pname; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-0OUdBygL2AAtccL5hdyL+0PIRK4o+lNN3droWDysDeI="; 20 }; 21 22 postPatch = '' 23 substituteInPlace tests/test_camera.py \ 24 --replace-fail "assertEquals" "assertEqual" 25 ''; 26 27 build-system = [ setuptools ]; 28 29 nativeCheckInputs = [ 30 mock 31 pytestCheckHook 32 ]; 33 34 meta = with lib; { 35 description = "Client for Ubiquiti's Unifi Camera NVR"; 36 mainProgram = "uvc"; 37 homepage = "https://github.com/kk7ds/uvcclient"; 38 license = licenses.gpl3Plus; 39 maintainers = with maintainers; [ hexa ]; 40 }; 41}