depot/third_party/nixpkgs/pkgs/development/python-modules/legacy-cgi/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

36 lines
767 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "legacy-cgi";
version = "2.6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "jackrosenthal";
repo = "legacy-cgi";
rev = "refs/tags/v${version}";
hash = "sha256-hhWZoRswkuwvgkcKthNhMkPPhhoRH4TjdNp+orluQTQ=";
};
build-system = [ poetry-core ];
pythonImportsCheck = [
"cgi"
"cgitb"
];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Fork of the standard library cgi and cgitb modules, being deprecated in PEP-594";
homepage = "https://github.com/jackrosenthal/legacy-cgi";
license = lib.licenses.psfl;
maintainers = with lib.maintainers; [ dotlambda ];
};
}