1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "legacy-cgi"; 11 version = "2.6.3"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "jackrosenthal"; 16 repo = "legacy-cgi"; 17 tag = "v${version}"; 18 hash = "sha256-l2BuSlxAA31VlJ/Fhs4cGbidbXEt/zEH3BiWsuh29GM="; 19 }; 20 21 build-system = [ hatchling ]; 22 23 pythonImportsCheck = [ 24 "cgi" 25 "cgitb" 26 ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 meta = { 31 changelog = "https://github.com/jackrosenthal/legacy-cgi/releases/tag/${src.tag}"; 32 description = "Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594"; 33 homepage = "https://github.com/jackrosenthal/legacy-cgi"; 34 license = lib.licenses.psfl; 35 maintainers = with lib.maintainers; [ dotlambda ]; 36 }; 37}