1{ buildPythonApplication, click, fetchPypi, hypothesis, mypy, pytest
2, pytest-cov, pytest-runner, lib, stringcase
3}:
4
5buildPythonApplication rec {
6 pname = "zfs-replicate";
7 version = "1.2.3";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "b2cb9d4670a6e12d14a446c10d857862e91af6e4526f607e08b41bde89953bb8";
12 };
13
14 checkInputs = [
15 hypothesis
16 mypy
17 pytest
18 pytest-cov
19 ];
20
21 buildInputs = [
22 pytest-runner
23 ];
24
25 propagatedBuildInputs = [
26 click
27 stringcase
28 ];
29
30 doCheck = true;
31
32 checkPhase = ''
33 pytest --doctest-modules
34 '';
35
36 meta = with lib; {
37 homepage = "https://github.com/alunduil/zfs-replicate";
38 description = "ZFS Snapshot Replication";
39 license = licenses.bsd2;
40 maintainers = with maintainers; [ alunduil ];
41 };
42}