tarsnapper: 0.2.1 -> 0.4

- project is not a python library -> move out of pythonPackages.
- also enable tests
This commit is contained in:
Jörg Thalheim
2017-07-16 11:12:38 +01:00
parent dca801fbb7
commit f31773b852
5 changed files with 37 additions and 40 deletions
+25
View File
@@ -0,0 +1,25 @@
{ python3Packages, fetchFromGitHub , tarsnap }:
python3Packages.buildPythonApplication rec {
name = "tarsnapper-${version}";
version = "0.4";
src = fetchFromGitHub {
owner = "miracle2k";
repo = "tarsnapper";
rev = version;
sha256 = "03db49188f4v1946c8mqqj30ah10x68hbg3a58js0syai32v12pm";
};
buildInputs = with python3Packages; [ nose pytest ];
checkPhase = ''
py.test .
'';
propagatedBuildInputs = with python3Packages; [ pyyaml dateutil pexpect ];
patches = [ ./remove-argparse.patch ];
makeWrapperArgs = ["--prefix PATH : ${tarsnap}/bin"];
}