nixpkgs/pkgs/applications/backup/unifi-protect-backup/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, python3
}:
2022-07-18 08:31:12 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "unifi-protect-backup";
version = "0.9.4";
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}";
hash = "sha256-MFg518iodxdHbr7k5kpkTWI59Kk7pPwyIVswVcjasl8=";
2022-07-18 08:31:12 +00:00
};
pythonRelaxDeps = [
"aiorun"
"aiosqlite"
"click"
"pyunifiprotect"
];
2022-07-18 08:31:12 +00:00
nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
2022-07-18 08:31:12 +00:00
];
propagatedBuildInputs = with python3.pkgs; [
aiocron
aiorun
aiosqlite
apprise
async-lru
2022-07-18 08:31:12 +00:00
click
expiring-dict
python-dateutil
2022-07-18 08:31:12 +00:00
pyunifiprotect
];
nativeCheckInputs = with python3.pkgs; [
2022-07-18 08:31:12 +00:00
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";
2022-07-18 08:31:12 +00:00
license = licenses.mit;
maintainers = with maintainers; [ ajs124 ];
2022-07-18 08:31:12 +00:00
};
}