2024-04-21 15:54:59 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pynose, mock }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uvcclient";
|
|
|
|
version = "0.11.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kk7ds";
|
|
|
|
repo = pname;
|
|
|
|
rev = "58e7a53815482b7778481f81cde95f53a60bb6f6";
|
|
|
|
sha256 = "0k8aswrk1n08w6pi6dg0zdzsmk23cafihkrss9ywg3i85w7q43x2";
|
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests/test_camera.py \
|
|
|
|
--replace-fail "assertEquals" "assertEqual"
|
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
pynose
|
2020-08-20 17:08:02 +00:00
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Client for Ubiquiti's Unifi Camera NVR";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "uvc";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/kk7ds/uvcclient";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|