tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
tarsnapper: 0.4 -> 0.5
George Macon
2 years ago
093f6333
b32b6ec7
+22
-23
2 changed files
expand all
collapse all
unified
split
pkgs
tools
backup
tarsnapper
default.nix
remove-argparse.patch
+22
-13
pkgs/tools/backup/tarsnapper/default.nix
···
1
1
{ lib
2
2
, python3Packages
3
3
, fetchFromGitHub
4
4
+
, fetchpatch
4
5
, tarsnap
5
6
}:
6
7
7
8
python3Packages.buildPythonApplication rec {
8
9
pname = "tarsnapper";
9
9
-
version = "0.4";
10
10
+
version = "0.5";
11
11
+
pyproject = true;
10
12
11
13
src = fetchFromGitHub {
12
14
owner = "miracle2k";
13
15
repo = pname;
14
16
rev = version;
15
15
-
sha256 = "03db49188f4v1946c8mqqj30ah10x68hbg3a58js0syai32v12pm";
17
17
+
hash = "sha256-5i9eum9hbh6VFhvEIDq5Uapy6JtIbf9jZHhRYZVoC1w=";
16
18
};
17
19
20
20
+
patches = [
21
21
+
# Fix failing tests when default_deltas is None
22
22
+
(fetchpatch {
23
23
+
url = "https://github.com/miracle2k/tarsnapper/commit/2ee33ce748b9bb42d559cc2c0104115732cb4150.patch";
24
24
+
hash = "sha256-fEXGhzlfB+J5lw1pcsC5Ne7I8UMnDzwyyCx/zm15+fU=";
25
25
+
})
26
26
+
];
27
27
+
28
28
+
nativeBuildInputs = with python3Packages; [
29
29
+
pythonRelaxDepsHook
30
30
+
setuptools
31
31
+
];
32
32
+
18
33
propagatedBuildInputs = with python3Packages; [
19
34
pyyaml
20
35
python-dateutil
···
22
37
];
23
38
24
39
nativeCheckInputs = with python3Packages; [
40
40
+
pytestCheckHook
25
41
nose
26
42
];
27
43
28
28
-
patches = [
29
29
-
# Remove standard module argparse from requirements
30
30
-
./remove-argparse.patch
31
31
-
];
44
44
+
# Remove standard module argparse from requirements
45
45
+
pythonRemoveDeps = [ "argparse" ];
32
46
33
47
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ tarsnap ]}" ];
34
48
35
35
-
checkPhase = ''
36
36
-
runHook preCheck
37
37
-
nosetests tests
38
38
-
runHook postCheck
39
39
-
'';
40
40
-
41
49
pythonImportsCheck = [ "tarsnapper" ];
42
50
43
51
meta = with lib; {
44
52
description = "Wrapper which expires backups using a gfs-scheme";
45
53
homepage = "https://github.com/miracle2k/tarsnapper";
46
54
license = licenses.bsd2;
47
47
-
maintainers = with maintainers; [ ];
55
55
+
maintainers = with maintainers; [ gmacon ];
56
56
+
mainProgram = "tarsnapper";
48
57
};
49
58
}
-10
pkgs/tools/backup/tarsnapper/remove-argparse.patch
···
1
1
-
--- tarsnapper-0.4-src.org/setup.py 1980-01-02 00:00:00.000000000 +0000
2
2
-
+++ tarsnapper-0.4-src/setup.py 2017-07-16 10:54:36.596499451 +0100
3
3
-
@@ -45,6 +45,6 @@
4
4
-
url='https://github.com/miracle2k/tarsnapper',
5
5
-
license='BSD',
6
6
-
packages=['tarsnapper'],
7
7
-
- install_requires = ['argparse>=1.1', 'pyyaml>=3.09', 'python-dateutil>=2.4.0', 'pexpect>=3.1'],
8
8
-
+ install_requires = ['pyyaml>=3.09', 'python-dateutil>=2.4.0', 'pexpect>=3.1'],
9
9
-
**kw
10
10
-
)