depot/third_party/nixpkgs/pkgs/tools/backup/zfs-replicate/default.nix

47 lines
816 B
Nix

{
buildPythonApplication,
click,
fetchPypi,
hypothesis,
lib,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
stringcase,
}:
buildPythonApplication rec {
pname = "zfs_replicate";
version = "4.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-9WD2IW7GRxMF7hOa8HTI/+cuOjVaYMT4OnrYU/xFgME=";
};
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
hypothesis
pytest-cov-stub
];
propagatedBuildInputs = [
click
stringcase
];
doCheck = true;
meta = with lib; {
homepage = "https://github.com/alunduil/zfs-replicate";
description = "ZFS Snapshot Replication";
mainProgram = "zfs-replicate";
license = licenses.bsd2;
maintainers = with maintainers; [ alunduil ];
};
}