Merge pull request #135242 from fabaff/license-tarsnapper
tarsnapper: add meta
This commit is contained in:
commit
91acfaf28e
1 changed files with 33 additions and 9 deletions
|
@ -1,25 +1,49 @@
|
||||||
{ python3Packages, fetchFromGitHub , tarsnap }:
|
{ lib
|
||||||
|
, python3Packages
|
||||||
|
, fetchFromGitHub
|
||||||
|
, tarsnap
|
||||||
|
}:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
name = "tarsnapper-${version}";
|
pname = "tarsnapper";
|
||||||
version = "0.4";
|
version = "0.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "miracle2k";
|
owner = "miracle2k";
|
||||||
repo = "tarsnapper";
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "03db49188f4v1946c8mqqj30ah10x68hbg3a58js0syai32v12pm";
|
sha256 = "03db49188f4v1946c8mqqj30ah10x68hbg3a58js0syai32v12pm";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = with python3Packages; [ nose pytest ];
|
propagatedBuildInputs = with python3Packages; [
|
||||||
|
pyyaml
|
||||||
|
python-dateutil
|
||||||
|
pexpect
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = with python3Packages; [
|
||||||
|
nose
|
||||||
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Remove standard module argparse from requirements
|
||||||
|
./remove-argparse.patch
|
||||||
|
];
|
||||||
|
|
||||||
|
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ tarsnap ]}" ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test .
|
runHook preCheck
|
||||||
|
nosetests tests
|
||||||
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ pyyaml python-dateutil pexpect ];
|
pythonImportsCheck = [ "tarsnapper" ];
|
||||||
|
|
||||||
patches = [ ./remove-argparse.patch ];
|
meta = with lib; {
|
||||||
|
description = "Wrapper which expires backups using a gfs-scheme";
|
||||||
makeWrapperArgs = ["--prefix PATH : ${tarsnap}/bin"];
|
homepage = "https://github.com/miracle2k/tarsnapper";
|
||||||
|
license = licenses.bsd2;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue