{ lib, buildPythonPackage, cachecontrol, fetchFromGitHub, legacy-cgi, lxml-html-clean, pytestCheckHook, pythonAtLeast, requests, setuptools, six, }: buildPythonPackage rec { pname = "pywebcopy"; version = "7.1"; pyproject = true; src = fetchFromGitHub { owner = "rajatomar788"; repo = "pywebcopy"; tag = version; hash = "sha256-ee8uGg4PU1uch8cyiU7QfvdYFUVDz7obq9oC8fKkf1s="; }; build-system = [ setuptools ]; dependencies = [ cachecontrol 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"; description = "Python package for cloning complete webpages and websites to local storage"; homepage = "https://github.com/rajatomar788/pywebcopy/"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ d3vil0p3r ]; }; }