blob: c884e3a02926148ab768611adc24aea5ef8a4222 (
plain) (
blame)
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
42
43
44
45
46
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
nose,
mock,
}:
buildPythonPackage rec {
pname = "uvcclient";
version = "0.11.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "kk7ds";
repo = pname;
rev = "58e7a53815482b7778481f81cde95f53a60bb6f6";
sha256 = "0k8aswrk1n08w6pi6dg0zdzsmk23cafihkrss9ywg3i85w7q43x2";
};
postPatch = ''
substituteInPlace tests/test_camera.py \
--replace-fail "assertEquals" "assertEqual"
'';
# tests rely on nose
doCheck = pythonOlder "3.12";
nativeCheckInputs = [
nose
mock
];
checkPhase = ''
nosetests
'';
meta = with lib; {
description = "Client for Ubiquiti's Unifi Camera NVR";
mainProgram = "uvc";
homepage = "https://github.com/kk7ds/uvcclient";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ hexa ];
};
}
|