3b0560c6d9
https://github.com/ep1cman/unifi-protect-backup/releases/tag/v0.9.2 https://github.com/ep1cman/unifi-protect-backup/releases/tag/v0.9.3 https://github.com/ep1cman/unifi-protect-backup/releases/tag/v0.9.4
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "unifi-protect-backup";
|
|
version = "0.9.4";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ep1cman";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-MFg518iodxdHbr7k5kpkTWI59Kk7pPwyIVswVcjasl8=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"aiorun"
|
|
"aiosqlite"
|
|
"click"
|
|
"pyunifiprotect"
|
|
];
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
aiocron
|
|
aiorun
|
|
aiosqlite
|
|
apprise
|
|
async-lru
|
|
click
|
|
expiring-dict
|
|
python-dateutil
|
|
pyunifiprotect
|
|
];
|
|
|
|
nativeCheckInputs = 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";
|
|
changelog = "https://github.com/ep1cman/unifi-protect-backup/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ajs124 ];
|
|
};
|
|
}
|