Skip to content

Commit d97c135

Browse files
committed
python313Packages.python-mimeparse: add legacy-cgi
1 parent 1489dd8 commit d97c135

File tree

1 file changed

+4
-0
lines changed
  • pkgs/development/python-modules/python-mimeparse

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
lib,
33
buildPythonPackage,
44
fetchPypi,
5+
legacy-cgi,
56
pytestCheckHook,
7+
pythonAtLeast,
68
}:
79

810
buildPythonPackage rec {
@@ -15,6 +17,8 @@ buildPythonPackage rec {
1517
sha256 = "76e4b03d700a641fd7761d3cd4fdbbdcd787eade1ebfac43f877016328334f78";
1618
};
1719

20+
dependencies = lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ];
21+
1822
nativeCheckInputs = [ pytestCheckHook ];
1923

2024
meta = with lib; {

0 commit comments

Comments
 (0)