Skip to content

Commit 789d5d0

Browse files
authored
python313Packages.servefile: fix build (#386552)
2 parents 6fb2a65 + 303485e commit 789d5d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
buildPythonPackage,
33
fetchFromGitHub,
4+
legacy-cgi,
45
lib,
56
pyopenssl,
67
pytestCheckHook,
8+
pythonAtLeast,
79
requests,
810
}:
911

@@ -19,7 +21,9 @@ buildPythonPackage rec {
1921
hash = "sha256-hIqXwhmvstCslsCO973oK5FF2c8gZJ0wNUI/z8W+OjU=";
2022
};
2123

22-
propagatedBuildInputs = [ pyopenssl ];
24+
dependencies = [
25+
pyopenssl
26+
] ++ lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ];
2327

2428
nativeCheckInputs = [
2529
pytestCheckHook

0 commit comments

Comments
 (0)