1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pynose, 7 mock, 8}: 9 10buildPythonPackage rec { 11 pname = "uvcclient"; 12 version = "0.11.0"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "kk7ds"; 17 repo = pname; 18 rev = "58e7a53815482b7778481f81cde95f53a60bb6f6"; 19 sha256 = "0k8aswrk1n08w6pi6dg0zdzsmk23cafihkrss9ywg3i85w7q43x2"; 20 }; 21 22 postPatch = '' 23 substituteInPlace tests/test_camera.py \ 24 --replace-fail "assertEquals" "assertEqual" 25 ''; 26 27 nativeCheckInputs = [ 28 pynose 29 mock 30 ]; 31 32 checkPhase = '' 33 nosetests 34 ''; 35 36 meta = with lib; { 37 description = "Client for Ubiquiti's Unifi Camera NVR"; 38 mainProgram = "uvc"; 39 homepage = "https://github.com/kk7ds/uvcclient"; 40 license = licenses.gpl3Plus; 41 maintainers = with maintainers; [ hexa ]; 42 }; 43}