2022-12-28 21:45:47 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2022-07-18 08:31:12 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "unifi-protect-backup";
|
2023-01-07 15:37:34 +00:00
|
|
|
version = "0.8.8";
|
2022-07-18 08:31:12 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ep1cman";
|
|
|
|
repo = pname;
|
2022-08-21 22:46:50 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-07 15:37:34 +00:00
|
|
|
hash = "sha256-Z8qK7LprMyXl5irx9Xrs/RgqvNcFVBqLBSljovr6oiE=";
|
2022-07-18 08:31:12 +00:00
|
|
|
};
|
|
|
|
|
2022-12-28 21:45:47 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"aiorun"
|
|
|
|
"aiosqlite"
|
|
|
|
"click"
|
|
|
|
"pyunifiprotect"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRemoveDeps = [
|
|
|
|
"pylint"
|
|
|
|
];
|
2022-07-18 08:31:12 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
2022-12-28 21:45:47 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-07-18 08:31:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiocron
|
2022-12-08 12:47:11 +00:00
|
|
|
aiorun
|
|
|
|
aiosqlite
|
2022-07-18 08:31:12 +00:00
|
|
|
click
|
|
|
|
pyunifiprotect
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python tool to backup unifi event clips in realtime";
|
|
|
|
homepage = "https://github.com/ep1cman/unifi-protect-backup";
|
2022-12-28 21:45:47 +00:00
|
|
|
changelog = "https://github.com/ep1cman/unifi-protect-backup/blob/v${version}/CHANGELOG.md";
|
2022-07-18 08:31:12 +00:00
|
|
|
license = licenses.mit;
|
2022-12-28 21:45:47 +00:00
|
|
|
maintainers = with maintainers; [ ajs124 ];
|
2022-07-18 08:31:12 +00:00
|
|
|
};
|
|
|
|
}
|