2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
poetry-core,
|
2024-06-05 15:53:02 +00:00
|
|
|
mock,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub,
|
|
|
|
pytest-xdist,
|
2024-07-27 06:49:29 +00:00
|
|
|
pytestCheckHook
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uvcclient";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.12.2";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kk7ds";
|
|
|
|
repo = pname;
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-V7xIvZ9vIXHPpkEeJZ6QedWk+4ZVNwCzj5ffLyixFz4=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
2024-07-27 06:49:29 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
mock
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub
|
|
|
|
pytest-xdist
|
2024-07-27 06:49:29 +00:00
|
|
|
pytestCheckHook
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/uilibs/uvcclient/blob/${src.rev}/CHANGELOG.md";
|
2020-08-20 17:08:02 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|