11 buildPythonPackage rec {
12 pname = "http-parser";
16 src = fetchFromGitHub {
19 rev = "refs/tags/${version}";
20 hash = "sha256-WHimvSaNcncwzLwwk5+ZNg7BbHF+hPr39SfidEDYfhU=";
33 pythonImportsCheck = [ "http_parser" ];
35 # The imp module is deprecated since version 3.4, and was removed in 3.12
36 # https://docs.python.org/3.11/library/imp.html
37 # Fix from: https://github.com/benoitc/http-parser/pull/101/
40 url = "https://github.com/benoitc/http-parser/commit/4d4984ce129253f9de475bfd3c683301c916e8b1.patch";
41 hash = "sha256-d3k1X41/D9PpPWsDety2AiYyLv9LJIhpkOo3a6qKcB8=";
45 nativeCheckInputs = [ pytestCheckHook ];
48 description = "HTTP request/response parser for python in C";
49 homepage = "https://github.com/benoitc/http-parser";
50 license = lib.licenses.mit;