python3Packages.neoteroi-mkdocs: fix tests on sandboxed darwin

This commit is contained in:
Zexin Yuan
2025-05-03 21:11:12 +08:00
parent b20d91a489
commit b302633dba
@@ -12,6 +12,7 @@
pytestCheckHook,
rich,
setuptools,
stdenv,
}:
buildPythonPackage rec {
pname = "neoteroi-mkdocs";
@@ -48,6 +49,13 @@ buildPythonPackage rec {
pythonImportsCheck = [ "neoteroi.mkdocs" ];
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
# These tests start a server using a hardcoded port, and since
# multiple Python versions are always built simultaneously, this
# failure is quite likely to occur.
"tests/test_http.py"
];
meta = with lib; {
homepage = "https://github.com/Neoteroi/mkdocs-plugins";
description = "Plugins for MkDocs";