2023-08-22 22:38:29 +02:00
|
|
|
{ buildPythonApplication
|
|
|
|
, click
|
|
|
|
, fetchPypi
|
|
|
|
, hypothesis
|
|
|
|
, lib
|
|
|
|
, poetry-core
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, stringcase
|
2019-07-21 17:29:39 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
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";
|
2024-02-18 00:05:33 +01:00
|
|
|
pyproject = true;
|
2019-07-21 17:29:39 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-20 13:43:28 +02:00
|
|
|
hash = "sha256-Xmg33bqs3gQJWqkCNiWYUem3o6XsxpfbHIVvLs/2D94=";
|
2019-07-21 17:29:39 +02:00
|
|
|
};
|
|
|
|
|
2023-06-07 16:11:08 +02:00
|
|
|
postPatch = ''
|
2023-08-22 22:38:29 +02:00
|
|
|
sed -i pyproject.toml -e '/--cov[^"]*/d'
|
2023-06-07 16:11:08 +02:00
|
|
|
'';
|
|
|
|
|
2023-08-22 22:38:29 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2023-08-22 22:38:29 +02:00
|
|
|
pytestCheckHook
|
2019-07-21 17:29:39 +02:00
|
|
|
hypothesis
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
stringcase
|
|
|
|
];
|
|
|
|
|
2024-02-06 18:35:05 +01:00
|
|
|
doCheck = true;
|
2019-07-21 17:29:39 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/alunduil/zfs-replicate";
|
2019-07-21 17:29:39 +02:00
|
|
|
description = "ZFS Snapshot Replication";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "zfs-replicate";
|
2019-07-21 17:29:39 +02:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ alunduil ];
|
|
|
|
};
|
|
|
|
}
|