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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
857 B
Nix
Raw Permalink Normal View History

2023-08-22 22:38:29 +02:00
{ buildPythonApplication
, click
, fetchPypi
, hypothesis
, lib
, poetry-core
, pytest
, pytestCheckHook
, stringcase
}:
buildPythonApplication rec {
2023-08-22 22:38:29 +02:00
pname = "zfs_replicate";
2024-04-20 13:43:28 +02:00
version = "3.2.13";
pyproject = true;
src = fetchPypi {
inherit pname version;
2024-04-20 13:43:28 +02:00
hash = "sha256-Xmg33bqs3gQJWqkCNiWYUem3o6XsxpfbHIVvLs/2D94=";
};
postPatch = ''
2023-08-22 22:38:29 +02:00
sed -i pyproject.toml -e '/--cov[^"]*/d'
'';
2023-08-22 22:38:29 +02:00
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
2023-08-22 22:38:29 +02:00
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 ];
};
}