python3Packages.certbot: fix tests on Darwin

This commit is contained in:
Robert Schütz
2025-10-14 18:53:10 -07:00
parent 6f89f03499
commit e0c7eab0c6
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
python,
runCommand,
@@ -19,6 +20,7 @@
pytest-xdist,
pytestCheckHook,
python-dateutil,
writeShellScriptBin,
}:
buildPythonPackage rec {
@@ -59,6 +61,11 @@ buildPythonPackage rec {
python-dateutil
pytestCheckHook
pytest-xdist
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
(writeShellScriptBin "sw_vers" ''
echo 'ProductVersion: 13.0'
'')
];
pytestFlags = [
@@ -71,6 +78,8 @@ buildPythonPackage rec {
"test_lock_order"
];
__darwinAllowLocalNetworking = true;
makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ];
# certbot.withPlugins has a similar calling convention as python*.withPackages