diff --git a/pkgs/development/python-modules/filedepot/default.nix b/pkgs/development/python-modules/filedepot/default.nix index 6c744b64c3c89..e733f308646e9 100644 --- a/pkgs/development/python-modules/filedepot/default.nix +++ b/pkgs/development/python-modules/filedepot/default.nix @@ -5,10 +5,12 @@ fetchFromGitHub, flaky, google-cloud-storage, + legacy-cgi, mock, pillow, pymongo, pytestCheckHook, + pythonAtLeast, pythonOlder, requests, setuptools, @@ -34,7 +36,7 @@ buildPythonPackage rec { dependencies = [ anyascii google-cloud-storage - ]; + ] ++ lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ]; nativeCheckInputs = [ flaky @@ -56,6 +58,8 @@ buildPythonPackage rec { "tests/test_wsgi_middleware.py" ]; + disabledTests = lib.optionals (pythonAtLeast "3.13") [ "test_notexisting" ]; + pythonImportsCheck = [ "depot" ]; meta = with lib; {