push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
setuptools,
pytestCheckHook,
fetchpatch,
}:
buildPythonPackage rec {
pname = "http-parser";
version = "0.9.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "benoitc";
repo = "http-parser";
tag = version;
hash = "sha256-WHimvSaNcncwzLwwk5+ZNg7BbHF+hPr39SfidEDYfhU=";
};
nativeBuildInputs = [
cython
setuptools
];
preBuild = ''
# re-run cython
make -B
'';
pythonImportsCheck = [ "http_parser" ];
# The imp module is deprecated since version 3.4, and was removed in 3.12
# https://docs.python.org/3.11/library/imp.html
# Fix from: https://github.com/benoitc/http-parser/pull/101/
patches = [
(fetchpatch {
url = "https://github.com/benoitc/http-parser/commit/4d4984ce129253f9de475bfd3c683301c916e8b1.patch";
hash = "sha256-d3k1X41/D9PpPWsDety2AiYyLv9LJIhpkOo3a6qKcB8=";
})
];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "HTTP request/response parser for python in C";
homepage = "https://github.com/benoitc/http-parser";
license = lib.licenses.mit;
maintainers = [ ];
};
}