diff --git a/pkgs/development/python-modules/pywebcopy/default.nix b/pkgs/development/python-modules/pywebcopy/default.nix index e8d8cb61a334..b8065204a811 100644 --- a/pkgs/development/python-modules/pywebcopy/default.nix +++ b/pkgs/development/python-modules/pywebcopy/default.nix @@ -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";