depot/third_party/nixpkgs/pkgs/tools/backup/zfs-replicate/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

41 lines
767 B
Nix

{ buildPythonApplication, click, fetchPypi, hypothesis, pytest
, lib, stringcase
}:
buildPythonApplication rec {
pname = "zfs-replicate";
version = "1.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "b2cb9d4670a6e12d14a446c10d857862e91af6e4526f607e08b41bde89953bb8";
};
postPatch = ''
sed -i setup.cfg \
-e '/--cov.*/d'
'';
nativeCheckInputs = [
hypothesis
pytest
];
propagatedBuildInputs = [
click
stringcase
];
doCheck = true;
checkPhase = ''
pytest --doctest-modules
'';
meta = with lib; {
homepage = "https://github.com/alunduil/zfs-replicate";
description = "ZFS Snapshot Replication";
license = licenses.bsd2;
maintainers = with maintainers; [ alunduil ];
};
}