1{ lib, fetchFromGitHub, git, awscli, python3 }:
2
3python3.pkgs.buildPythonApplication rec {
4 pname = "iceshelf";
5 version = "unstable-2019-07-03";
6
7 format = "other";
8
9 src = fetchFromGitHub {
10 owner = "mrworf";
11 repo = pname;
12 rev = "26768dde3fc54fa412e523eb8f8552e866b4853b";
13 sha256 = "08rcbd14vn7312rmk2hyvdzvhibri31c4r5lzdrwb1n1y9q761qm";
14 };
15
16 propagatedBuildInputs = [
17 git
18 awscli
19 python3.pkgs.python-gnupg
20 ];
21
22 installPhase = ''
23 mkdir -p $out/bin $out/share/doc/${pname} $out/${python3.sitePackages}
24 cp -v iceshelf iceshelf-restore $out/bin
25 cp -v iceshelf.sample.conf $out/share/doc/${pname}/
26 cp -rv modules $out/${python3.sitePackages}
27 '';
28
29 meta = with lib; {
30 description = "A simple tool to allow storage of signed, encrypted, incremental backups using Amazon's Glacier storage";
31 license = licenses.lgpl2;
32 homepage = "https://github.com/mrworf/iceshelf";
33 maintainers = with maintainers; [ mmahut ];
34 };
35}