python313Packages.pywebcopy: add legacy-cgi for Python >= 3.13

This commit is contained in:
Fabian Affolter
2025-03-07 22:50:54 +01:00
parent 3f7aa85c3e
commit 4189ddeddf
@@ -1,12 +1,14 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
pytestCheckHook,
setuptools,
cachecontrol,
fetchFromGitHub,
legacy-cgi,
lxml-html-clean,
pytestCheckHook,
pythonAtLeast,
requests,
setuptools,
six,
}:
@@ -22,10 +24,6 @@ buildPythonPackage rec {
hash = "sha256-XTPk3doF9dqImsLtTB03YKMWLzQrJpJtjNXe+691rZo=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pywebcopy" ];
build-system = [ setuptools ];
dependencies = [
@@ -33,7 +31,11 @@ buildPythonPackage rec {
lxml-html-clean
requests
six
];
] ++ lib.optionals (pythonAtLeast "3.13") [ legacy-cgi ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pywebcopy" ];
meta = {
changelog = "https://github.com/rajatomar788/pywebcopy/blob/master/docs/changelog.md";