summary refs log tree commit diff
path: root/pkgs/tools/backup/tarsnapper/default.nix
blob: a5ad2c3625c1dfec89ce150f2d66f56e13f604b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ python3Packages, fetchFromGitHub , tarsnap }:

python3Packages.buildPythonApplication rec {
  name = "tarsnapper-${version}";
  version = "0.4";

  src = fetchFromGitHub {
    owner = "miracle2k";
    repo = "tarsnapper";
    rev = version;
    sha256 = "03db49188f4v1946c8mqqj30ah10x68hbg3a58js0syai32v12pm";
  };

  checkInputs = with python3Packages; [ nose pytest ];

  checkPhase = ''
    py.test .
  '';

  propagatedBuildInputs = with python3Packages; [ pyyaml python-dateutil pexpect ];

  patches = [ ./remove-argparse.patch ];

  makeWrapperArgs = ["--prefix PATH : ${tarsnap}/bin"];
}