nixpkgs/pkgs/tools/backup/zfs-replicate/default.nix
Alex Brandt 8c938d1104 zfs-replicate: doCheck = true
New versions of zfs-replicate include the test suite in the source tarball.
This allows us to run tests during build and verify functionality at least
passes these checks.
2024-02-06 17:35:05 +00:00

50 lines
825 B
Nix

{ buildPythonApplication
, click
, fetchPypi
, hypothesis
, lib
, poetry-core
, pytest
, pytestCheckHook
, stringcase
}:
buildPythonApplication rec {
pname = "zfs_replicate";
version = "3.2.5";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-3rIbPXoI2eQCoLU/l1pXEmMJh5NAzrqwZSkn9jzfUoc=";
};
postPatch = ''
sed -i pyproject.toml -e '/--cov[^"]*/d'
'';
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
hypothesis
pytest
];
propagatedBuildInputs = [
click
stringcase
];
doCheck = true;
meta = with lib; {
homepage = "https://github.com/alunduil/zfs-replicate";
description = "ZFS Snapshot Replication";
license = licenses.bsd2;
maintainers = with maintainers; [ alunduil ];
};
}