Merge pull request #1588 from ocharles/pythonPackages.tarsnapper
pythonPackages.tarsnapper: New expression
This commit is contained in:
commit
09e7489ddc
2 changed files with 50 additions and 12 deletions
20
pkgs/development/python-modules/tarsnapper-path.patch
Normal file
20
pkgs/development/python-modules/tarsnapper-path.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
diff --git a/src/tarsnapper/script.py b/src/tarsnapper/script.py
|
||||
index 737ac8d..52cc775 100644
|
||||
--- a/src/tarsnapper/script.py
|
||||
+++ b/src/tarsnapper/script.py
|
||||
@@ -48,7 +48,7 @@ class TarsnapBackend(object):
|
||||
"""
|
||||
``arguments`` is a single list of strings.
|
||||
"""
|
||||
- call_with = ['tarsnap']
|
||||
+ call_with = ['@NIXTARSNAPPATH@']
|
||||
for option in self.options:
|
||||
key = option[0]
|
||||
pre = "-" if len(key) == 1 else "--"
|
||||
@@ -499,4 +499,4 @@ def run():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
- run()
|
||||
\ No newline at end of file
|
||||
+ run()
|
|
@ -6630,6 +6630,24 @@ pythonPackages = modules // import ./python-packages-generated.nix {
|
|||
};
|
||||
};
|
||||
|
||||
tarsnapper = buildPythonPackage rec {
|
||||
name = "tarsnapper-0.2.1";
|
||||
|
||||
src = fetchgit {
|
||||
url = https://github.com/miracle2k/tarsnapper.git;
|
||||
rev = "620439bca68892f2ffaba1079a34b18496cc6596";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ argparse pyyaml ];
|
||||
|
||||
patches = [ ../development/python-modules/tarsnapper-path.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace src/tarsnapper/script.py \
|
||||
--replace '@NIXTARSNAPPATH@' '${pkgs.tarsnap}/bin/tarsnap'
|
||||
'';
|
||||
};
|
||||
|
||||
taskcoach = buildPythonPackage rec {
|
||||
name = "TaskCoach-1.3.22";
|
||||
|
||||
|
|
Loading…
Reference in a new issue