depot/third_party/nixpkgs/pkgs/tools/backup/tarsnapper/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
591 B
Nix

{ 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 dateutil pexpect ];
patches = [ ./remove-argparse.patch ];
makeWrapperArgs = ["--prefix PATH : ${tarsnap}/bin"];
}