Skip to content

Commit

Permalink
python313Packages.filedepot: add legacy-cgi for Python 3.13 (NixOS#37…
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored Jan 9, 2025
2 parents 1eb3bcd + f57a3cb commit 48a14f2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/development/python-modules/filedepot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
fetchFromGitHub,
flaky,
google-cloud-storage,
legacy-cgi,
mock,
pillow,
pymongo,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
requests,
setuptools,
Expand All @@ -29,12 +31,12 @@ buildPythonPackage rec {
hash = "sha256-693H/u+Wg2G9sdoUkC6DQo9WkmIlKnh8NKv3ufK/eyQ=";
};

nativeBuildInputs = [ setuptools ];
build-system = [ setuptools ];

propagatedBuildInputs = [
dependencies = [
anyascii
google-cloud-storage
];
] ++ lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ];

nativeCheckInputs = [
flaky
Expand All @@ -56,6 +58,8 @@ buildPythonPackage rec {
"tests/test_wsgi_middleware.py"
];

disabledTests = lib.optionals (pythonAtLeast "3.13") [ "test_notexisting" ];

pythonImportsCheck = [ "depot" ];

meta = with lib; {
Expand Down

0 comments on commit 48a14f2

Please sign in to comment.