2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
50 lines
869 B
Nix
50 lines
869 B
Nix
{ buildPythonApplication
|
|
, click
|
|
, fetchPypi
|
|
, hypothesis
|
|
, lib
|
|
, poetry-core
|
|
, pytest
|
|
, pytestCheckHook
|
|
, stringcase
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "zfs_replicate";
|
|
version = "3.1.4";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-mRINo20/uFlWtP5W7w+D2E9o89hlAsqZmBjuv0qWP9k=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i pyproject.toml -e '/--cov[^"]*/d'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
hypothesis
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
stringcase
|
|
];
|
|
|
|
# Current releases do not include tests.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/alunduil/zfs-replicate";
|
|
description = "ZFS Snapshot Replication";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ alunduil ];
|
|
};
|
|
}
|