diff --git a/pkgs/development/python-modules/standard-cgi/default.nix b/pkgs/development/python-modules/standard-cgi/default.nix new file mode 100644 index 000000000000..c57841af54dc --- /dev/null +++ b/pkgs/development/python-modules/standard-cgi/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 90b781aa08fa..e7e72ab9acd4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { }