zfs-replicate: 1.2.3 -> 3.1.4

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