nixpkgs/pkgs/tools/backup/zfs-replicate/default.nix
2024-01-26 13:21:13 +00:00

51 lines
869 B
Nix

{ buildPythonApplication
, click
, fetchPypi
, hypothesis
, lib
, poetry-core
, pytest
, pytestCheckHook
, stringcase
}:
buildPythonApplication rec {
pname = "zfs_replicate";
version = "3.2.4";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-AjpdJT8on2YyGCriQllFyMnHgg4H7acCy/ewBuBrXKs=";
};
postPatch = ''
sed -i pyproject.toml -e '/--cov[^"]*/d'
'';
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
hypothesis
pytest
];
propagatedBuildInputs = [
click
stringcase
];
# Current releases do not include tests.
doCheck = false;
meta = with lib; {
homepage = "https://github.com/alunduil/zfs-replicate";
description = "ZFS Snapshot Replication";
license = licenses.bsd2;
maintainers = with maintainers; [ alunduil ];
};
}