depot/third_party/nixpkgs/pkgs/tools/backup/tarsnapper/default.nix
Default email b96e6f4393 Project import generated by Copybara.
GitOrigin-RevId: 20887e4bbfdae3aed6bfa1f53ddf138ee325515e
2021-07-03 21:40:35 -05:00

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