15
0

- Switch to autosetup and pyproject macros.

- Add patch remove-imp-module.patch:
  * Use importlib, not imp.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=36
This commit is contained in:
2024-01-11 03:17:22 +00:00
committed by Git OBS Bridge
parent 660f210446
commit 34bbb070e7
3 changed files with 52 additions and 3 deletions

View File

@@ -23,6 +23,8 @@ Summary: HTTP Request/Response Parser for Python in C
License: MIT
URL: https://github.com/benoitc/http-parser/
Source: https://files.pythonhosted.org/packages/source/h/http-parser/http-parser-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#benoitc/http-parser#101
Patch0: remove-imp-module.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
@@ -37,7 +39,7 @@ HTTP request/response parser for Python in C, based on
http-parser from Ryan Dahl.
%prep
%setup -q -n http-parser-%{version}
%autosetup -p1 -n http-parser-%{version}
%build
# fix wrongly generated cyx files