3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/zfs-replicate/default.nix

43 lines
795 B
Nix
Raw Normal View History

{ buildPythonApplication, click, fetchPypi, hypothesis, mypy, pytest
, pytestcov, pytestrunner, lib, stdenv, stringcase
}:
buildPythonApplication rec {
pname = "zfs-replicate";
2020-10-24 23:43:36 +01:00
version = "1.2.3";
src = fetchPypi {
inherit pname version;
2020-10-24 23:43:36 +01:00
sha256 = "b2cb9d4670a6e12d14a446c10d857862e91af6e4526f607e08b41bde89953bb8";
};
checkInputs = [
hypothesis
mypy
pytest
pytestcov
];
buildInputs = [
pytestrunner
];
propagatedBuildInputs = [
click
stringcase
];
doCheck = true;
checkPhase = ''
pytest --doctest-modules
'';
meta = with lib; {
homepage = "https://github.com/alunduil/zfs-replicate";
description = "ZFS Snapshot Replication";
license = licenses.bsd2;
maintainers = with maintainers; [ alunduil ];
};
}