@@ -0,0 +1,42 @@
1+{ buildPythonApplication, click, fetchPypi, hypothesis, mypy, pytest
2+, pytestcov, pytestrunner, stdenv, stringcase
3+}:
4+
5+buildPythonApplication rec {
6+ pname = "zfs-replicate";
7+ version = "1.1.11";
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "0386xc6rw6bhzw2a08g90afb3snqhm1ikx65bjfh22ha69fwmga8";
12+ };
13+
14+ checkInputs = [
15+ hypothesis
16+ mypy
17+ pytest
18+ pytestcov
19+ ];
20+
21+ buildInputs = [
22+ pytestrunner
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 stdenv.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+}