1{ lib, buildPythonPackage, fetchFromGitHub, nose, mock }:
2
3buildPythonPackage rec {
4 pname = "uvcclient";
5 version = "0.11.0";
6
7 src = fetchFromGitHub {
8 owner = "kk7ds";
9 repo = pname;
10 rev = "58e7a53815482b7778481f81cde95f53a60bb6f6";
11 sha256 = "0k8aswrk1n08w6pi6dg0zdzsmk23cafihkrss9ywg3i85w7q43x2";
12 };
13
14 checkInputs = [
15 nose
16 mock
17 ];
18
19 checkPhase = ''
20 nosetests
21 '';
22
23 meta = with lib; {
24 description = "Client for Ubiquiti's Unifi Camera NVR";
25 homepage = "https://github.com/kk7ds/uvcclient";
26 license = licenses.gpl3Plus;
27 maintainers = with maintainers; [ hexa ];
28 };
29}