2023-11-16 04:20:00 +00:00
|
|
|
{ buildPythonApplication
|
|
|
|
, click
|
|
|
|
, fetchPypi
|
|
|
|
, hypothesis
|
|
|
|
, lib
|
|
|
|
, poetry-core
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, stringcase
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2023-11-16 04:20:00 +00:00
|
|
|
pname = "zfs_replicate";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.2.13";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Xmg33bqs3gQJWqkCNiWYUem3o6XsxpfbHIVvLs/2D94=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
postPatch = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
sed -i pyproject.toml -e '/--cov[^"]*/d'
|
2023-07-15 17:15:38 +00:00
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
hypothesis
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
stringcase
|
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/alunduil/zfs-replicate";
|
|
|
|
description = "ZFS Snapshot Replication";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "zfs-replicate";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ alunduil ];
|
|
|
|
};
|
|
|
|
}
|