2020-04-24 23:36:52 +00:00
|
|
|
{ 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 .
|
|
|
|
'';
|
|
|
|
|
2021-07-04 02:40:35 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pyyaml python-dateutil pexpect ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patches = [ ./remove-argparse.patch ];
|
|
|
|
|
|
|
|
makeWrapperArgs = ["--prefix PATH : ${tarsnap}/bin"];
|
|
|
|
}
|