2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "unifi-protect-backup";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.8.8";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ep1cman";
|
|
|
|
repo = pname;
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-Z8qK7LprMyXl5irx9Xrs/RgqvNcFVBqLBSljovr6oiE=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"aiorun"
|
|
|
|
"aiosqlite"
|
|
|
|
"click"
|
|
|
|
"pyunifiprotect"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRemoveDeps = [
|
|
|
|
"pylint"
|
|
|
|
];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
2023-01-11 07:51:40 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiocron
|
2022-12-17 10:02:37 +00:00
|
|
|
aiorun
|
|
|
|
aiosqlite
|
2022-08-12 12:06:08 +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";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/ep1cman/unifi-protect-backup/blob/v${version}/CHANGELOG.md";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.mit;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ ajs124 ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
}
|