mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 17:44:44 +00:00
zfs-replicate: 1.2.3 -> 3.1.4
This commit is contained in:
parent
0de6f40ec8
commit
b373027539
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user