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