1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, cython
5, setuptools
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "http-parser";
11 version = "0.9.0";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "benoitc";
16 repo = pname;
17 rev = "refs/tags/${version}";
18 hash = "sha256-WHimvSaNcncwzLwwk5+ZNg7BbHF+hPr39SfidEDYfhU=";
19 };
20
21 nativeBuildInputs = [
22 setuptools
23 ];
24
25
26 pythonImportsCheck = [
27 "http_parser"
28 ];
29
30 checkInputs = [
31 pytestCheckHook
32 ];
33
34 meta = with lib; {
35 description = "HTTP request/response parser for python in C";
36 homepage = "https://github.com/benoitc/http-parser";
37 license = licenses.mit;
38 maintainers = with maintainers; [ hexa ];
39 };
40}