python313Packages.standard-cgi: init at 3.13.0

The dead stdlib module library cgi, a stop-gap measure to unbreak
important packages.
This commit is contained in:
Martin Weinelt
2025-06-12 03:48:46 +02:00
parent 2885d7583c
commit a2d8a1282b
2 changed files with 36 additions and 0 deletions
@@ -0,0 +1,33 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "standard-cgi";
version = "3.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "youknowone";
repo = "python-deadlib";
tag = "v${version}";
hash = "sha256-vhGFTd1yXL4Frqli5D1GwOatwByDjvcP8sxgkdu6Jqg=";
};
sourceRoot = "${src.name}/cgi";
build-system = [ setuptools ];
nativeCheckInputs = [ unittestCheckHook ];
meta = {
description = "Python dead batteries. See PEP 594";
homepage = "https://github.com/youknowone/python-deadlib";
license = lib.licenses.psfl;
maintainers = with lib.maintainers; [ hexa ];
};
}
+3
View File
@@ -16883,6 +16883,9 @@ self: super: with self; {
standard-chunk =
if pythonAtLeast "3.13" then callPackage ../development/python-modules/standard-chunk { } else null;
standard-cgi =
if pythonAtLeast "3.13" then callPackage ../development/python-modules/standard-cgi { } else null;
standard-imghdr =
if pythonAtLeast "3.13" then
callPackage ../development/python-modules/standard-imghdr { }