1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 mock,
7 pytest-cov-stub,
8 pytest-xdist,
9 pytestCheckHook,
10}:
11
12buildPythonPackage rec {
13 pname = "uvcclient";
14 version = "0.12.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "kk7ds";
19 repo = "uvcclient";
20 tag = "v${version}";
21 hash = "sha256-V7xIvZ9vIXHPpkEeJZ6QedWk+4ZVNwCzj5ffLyixFz4=";
22 };
23
24 build-system = [ poetry-core ];
25
26 nativeCheckInputs = [
27 mock
28 pytest-cov-stub
29 pytest-xdist
30 pytestCheckHook
31 ];
32
33 meta = with lib; {
34 changelog = "https://github.com/uilibs/uvcclient/blob/${src.rev}/CHANGELOG.md";
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}