Unverified Commit b302633d authored by Zexin Yuan's avatar Zexin Yuan
Browse files

python3Packages.neoteroi-mkdocs: fix tests on sandboxed darwin

parent b20d91a4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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";