Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37592746
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-http-parser

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname http-parser

%def_with check

Name: python3-module-%oname
Version: 0.9.0
Release: alt2
Summary: http request/response parser
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/http-parser/

# https://github.com/benoitc/http-parser.git

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: python3(Cython)

%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_no_deps)
BuildRequires: python3(tox_console_scripts)
%endif

%py3_provides %oname

%description
HTTP request/response parser for Python compatible with Python 2.x
(>=2.6), Python 3 and Pypy. If possible a C parser based on http-parser
from Ryan Dahl will be used.

%prep
%setup

# regenerate with cython later

rm -f http_parser/parser.c

%build
%add_optflags -fno-strict-aliasing
%python3_build_debug

%install
%python3_install

%check
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts --no-deps -vvr -s false

%files
%doc NOTICE *.rst *.md THANKS examples
%python3_sitelibdir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin