Merge pull request #250845 from alunduil/zfs-replicate

zfs-replicate: 1.2.3 -> 3.1.0
This commit is contained in:
Peder Bergebakken Sundt 2023-10-24 01:20:17 +02:00 committed by GitHub
commit b152290c6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,22 +1,34 @@
{ buildPythonApplication, click, fetchPypi, hypothesis, pytest
, lib, stringcase
{ buildPythonApplication
, click
, fetchPypi
, hypothesis
, lib
, poetry-core
, pytest
, pytestCheckHook
, stringcase
}:
buildPythonApplication rec {
pname = "zfs-replicate";
version = "1.2.3";
pname = "zfs_replicate";
version = "3.1.4";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "b2cb9d4670a6e12d14a446c10d857862e91af6e4526f607e08b41bde89953bb8";
hash = "sha256-mRINo20/uFlWtP5W7w+D2E9o89hlAsqZmBjuv0qWP9k=";
};
postPatch = ''
sed -i setup.cfg \
-e '/--cov.*/d'
sed -i pyproject.toml -e '/--cov[^"]*/d'
'';
nativeBuildInputs = [
poetry-core
];
nativeCheckInputs = [
pytestCheckHook
hypothesis
pytest
];
@ -26,11 +38,8 @@ buildPythonApplication rec {
stringcase
];
doCheck = true;
checkPhase = ''
pytest --doctest-modules
'';
# Current releases do not include tests.
doCheck = false;
meta = with lib; {
homepage = "https://github.com/alunduil/zfs-replicate";