summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/uvcclient/default.nix
blob: 1585ee382b300cdb7a4d732893df77ee1101c292 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  mock,
  pytest-cov-stub,
  pytest-xdist,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "uvcclient";
  version = "0.12.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kk7ds";
    repo = "uvcclient";
    tag = "v${version}";
    hash = "sha256-V7xIvZ9vIXHPpkEeJZ6QedWk+4ZVNwCzj5ffLyixFz4=";
  };

  build-system = [ poetry-core ];

  nativeCheckInputs = [
    mock
    pytest-cov-stub
    pytest-xdist
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/uilibs/uvcclient/blob/${src.rev}/CHANGELOG.md";
    description = "Client for Ubiquiti's Unifi Camera NVR";
    mainProgram = "uvc";
    homepage = "https://github.com/kk7ds/uvcclient";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ hexa ];
  };
}