Skip to content

Commit 48a14f2

Browse files
authored
python313Packages.filedepot: add legacy-cgi for Python 3.13 (NixOS#372373)
2 parents 1eb3bcd + f57a3cb commit 48a14f2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pkgs/development/python-modules/filedepot/default.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@
55
fetchFromGitHub,
66
flaky,
77
google-cloud-storage,
8+
legacy-cgi,
89
mock,
910
pillow,
1011
pymongo,
1112
pytestCheckHook,
13+
pythonAtLeast,
1214
pythonOlder,
1315
requests,
1416
setuptools,
@@ -29,12 +31,12 @@ buildPythonPackage rec {
2931
hash = "sha256-693H/u+Wg2G9sdoUkC6DQo9WkmIlKnh8NKv3ufK/eyQ=";
3032
};
3133

32-
nativeBuildInputs = [ setuptools ];
34+
build-system = [ setuptools ];
3335

34-
propagatedBuildInputs = [
36+
dependencies = [
3537
anyascii
3638
google-cloud-storage
37-
];
39+
] ++ lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ];
3840

3941
nativeCheckInputs = [
4042
flaky
@@ -56,6 +58,8 @@ buildPythonPackage rec {
5658
"tests/test_wsgi_middleware.py"
5759
];
5860

61+
disabledTests = lib.optionals (pythonAtLeast "3.13") [ "test_notexisting" ];
62+
5963
pythonImportsCheck = [ "depot" ];
6064

6165
meta = with lib; {

0 commit comments

Comments
 (0)