depot/third_party/nixpkgs/pkgs/development/python-modules/http-parser/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

45 lines
788 B
Nix

{ 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; [ ];
};
}