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";
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
};
pythonRelaxDeps = [
"aiorun"
"aiosqlite"
"click"
"pyunifiprotect"
];
pythonRemoveDeps = [
"pylint"
];
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
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";
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
};
}