3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #181921 from helsinki-systems/init/unifi-protect-backup

This commit is contained in:
Martin Weinelt 2022-07-20 11:57:05 +02:00 committed by GitHub
commit cd8d178450
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ fetchFromGitHub, python3, lib }:
python3.pkgs.buildPythonApplication rec {
pname = "unifi-protect-backup";
version = "0.7.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "ep1cman";
repo = pname;
rev = "v${version}";
hash = "sha256-HAiyNFWLs1McrlAB48me/iI15LssO8ec7BiWuJbRlbs=";
};
preBuild = ''
sed -i 's_click = "8.0.1"_click = "^8"_' pyproject.toml
sed -i 's_pyunifiprotect = .*_pyunifiprotect = "*"_' pyproject.toml
'';
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
aiocron
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";
maintainers = with maintainers; [ ajs124 ];
license = licenses.mit;
};
}

View file

@ -23131,6 +23131,8 @@ with pkgs;
unifi = unifi7; unifi = unifi7;
unifi-protect-backup = callPackage ../applications/backup/unifi-protect-backup { };
unifi-video = callPackage ../servers/unifi-video { }; unifi-video = callPackage ../servers/unifi-video { };
unpackerr = callPackage ../servers/unpackerr { unpackerr = callPackage ../servers/unpackerr {