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