nixpkgs/pkgs/tools/backup/zfs-replicate/default.nix
Sarah Brofeldt dea8ad5645
Merge pull request #286783 from alunduil/zfs-replicate/doCheck
zfs-replicate: doCheck = true
2024-02-07 18:32:01 +01:00

50 lines
825 B
Nix

{ buildPythonApplication
, click
, fetchPypi
, hypothesis
, lib
, poetry-core
, pytest
, pytestCheckHook
, stringcase
}:
buildPythonApplication rec {
pname = "zfs_replicate";
version = "3.2.6";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-K+OCJmx0KfFTuaP3c5oFJqWa+zqYJtoruO2v/F0FtfA=";
};
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 ];
};
}