depot/third_party/nixpkgs/pkgs/tools/backup/zfs-replicate/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

50 lines
857 B
Nix

{ buildPythonApplication
, click
, fetchPypi
, hypothesis
, lib
, poetry-core
, pytest
, pytestCheckHook
, stringcase
}:
buildPythonApplication rec {
pname = "zfs_replicate";
version = "3.2.13";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-Xmg33bqs3gQJWqkCNiWYUem3o6XsxpfbHIVvLs/2D94=";
};
postPatch = ''
sed -i pyproject.toml -e '/--cov[^"]*/d'
'';
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
hypothesis
pytest
];
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 ];
};
}