tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
zfs-replicate: 1.2.3 -> 3.1.4
Alex Brandt
2 years ago
b3730275
0de6f40e
+21
-12
1 changed file
expand all
collapse all
unified
split
pkgs
tools
backup
zfs-replicate
default.nix
+21
-12
pkgs/tools/backup/zfs-replicate/default.nix
···
1
1
-
{ buildPythonApplication, click, fetchPypi, hypothesis, pytest
2
2
-
, lib, stringcase
1
1
+
{ buildPythonApplication
2
2
+
, click
3
3
+
, fetchPypi
4
4
+
, hypothesis
5
5
+
, lib
6
6
+
, poetry-core
7
7
+
, pytest
8
8
+
, pytestCheckHook
9
9
+
, stringcase
3
10
}:
4
11
5
12
buildPythonApplication rec {
6
6
-
pname = "zfs-replicate";
7
7
-
version = "1.2.3";
13
13
+
pname = "zfs_replicate";
14
14
+
version = "3.1.4";
15
15
+
format = "pyproject";
8
16
9
17
src = fetchPypi {
10
18
inherit pname version;
11
11
-
sha256 = "b2cb9d4670a6e12d14a446c10d857862e91af6e4526f607e08b41bde89953bb8";
19
19
+
hash = "sha256-mRINo20/uFlWtP5W7w+D2E9o89hlAsqZmBjuv0qWP9k=";
12
20
};
13
21
14
22
postPatch = ''
15
15
-
sed -i setup.cfg \
16
16
-
-e '/--cov.*/d'
23
23
+
sed -i pyproject.toml -e '/--cov[^"]*/d'
17
24
'';
25
25
+
26
26
+
nativeBuildInputs = [
27
27
+
poetry-core
28
28
+
];
18
29
19
30
nativeCheckInputs = [
31
31
+
pytestCheckHook
20
32
hypothesis
21
33
pytest
22
34
];
···
26
38
stringcase
27
39
];
28
40
29
29
-
doCheck = true;
30
30
-
31
31
-
checkPhase = ''
32
32
-
pytest --doctest-modules
33
33
-
'';
41
41
+
# Current releases do not include tests.
42
42
+
doCheck = false;
34
43
35
44
meta = with lib; {
36
45
homepage = "https://github.com/alunduil/zfs-replicate";