2019-07-21 15:29:39 +00:00
|
|
|
{ buildPythonApplication, click, fetchPypi, hypothesis, mypy, pytest
|
2021-07-20 21:07:53 +00:00
|
|
|
, pytest-cov, pytest-runner, lib, stringcase
|
2019-07-21 15:29:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "zfs-replicate";
|
2020-10-24 22:43:36 +00:00
|
|
|
version = "1.2.3";
|
2019-07-21 15:29:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-24 22:43:36 +00:00
|
|
|
sha256 = "b2cb9d4670a6e12d14a446c10d857862e91af6e4526f607e08b41bde89953bb8";
|
2019-07-21 15:29:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
mypy
|
|
|
|
pytest
|
2021-07-20 20:42:24 +00:00
|
|
|
pytest-cov
|
2019-07-21 15:29:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-07-20 21:07:53 +00:00
|
|
|
pytest-runner
|
2019-07-21 15:29:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
stringcase
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --doctest-modules
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/alunduil/zfs-replicate";
|
2019-07-21 15:29:39 +00:00
|
|
|
description = "ZFS Snapshot Replication";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ alunduil ];
|
|
|
|
};
|
|
|
|
}
|