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.

56 lines
1.2 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";
2024-02-27 12:08:09 +00:00
version = "0.10.5";
2024-01-16 16:03:08 +00:00
pyproject = true;
2022-07-18 08:31:12 +00:00
src = fetchFromGitHub {
owner = "ep1cman";
2024-01-16 16:03:08 +00:00
repo = "unifi-protect-backup";
2022-08-21 22:46:50 +00:00
rev = "refs/tags/v${version}";
2024-02-27 12:08:09 +00:00
hash = "sha256-la/YLodfAnVuM5On6u4dyDDUvaCotmDZtHdxgNnD31A=";
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
2024-01-16 16:03:08 +00:00
aiolimiter
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 = teams.helsinki-systems.members;
2023-11-27 01:17:53 +00:00
mainProgram = "unifi-protect-backup";
2022-07-18 08:31:12 +00:00
};
}