forked from pool/python-httpbin
- Repackage, new active upstream
* In their words: We were unable to get ahold of the folks at postmanlabs to
maintain the original project, and httpbin is used for other packages
within the python ecosystem, such as pytest-httpbin which is in turn used
by packages such as requests so we have forked this package. That means
that httpbin.org is not actually backed by this repo, but the httpbin
package is. Confusing right?
* Drop now unneeded _service, changes in the *spec
- Update to 0.10.1
* Override docker image port with HTTPBIN_PORT
* A number of fixes for code rot, thanks @mgorny and @tjni
- Drop upstreamed/no-longer-needed patches:
* fix-setup-py.patch
* httpbin-pr674-wekzeug2.1.patch
* werkzeug.patch
* support-werkzeug-2.3.patch
- Add flask3.patch to support Flask 3.0
OBS-URL: https://build.opensuse.org/request/show/1118866
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpbin?expand=0&rev=27
84 lines
2.6 KiB
RPMSpec
84 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-httpbin
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define modname httpbin
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-httpbin
|
|
Version: 0.10.1
|
|
Release: 0
|
|
Summary: HTTP Request and Response Service
|
|
License: MIT
|
|
URL: https://github.com/psf/httpbin
|
|
Source: https://files.pythonhosted.org/packages/source/h/%{modname}/%{modname}-%{version}.tar.gz
|
|
# PATCH-FIX-UPSTREAM https://github.com/psf/httpbin/pull/29 Support Flask 3.0
|
|
Patch: flask3.patch
|
|
BuildRequires: %{python_module Flask >= 2.2.4}
|
|
BuildRequires: %{python_module Werkzeug >= 2.0}
|
|
BuildRequires: %{python_module brotlicffi}
|
|
BuildRequires: %{python_module decorator}
|
|
BuildRequires: %{python_module flasgger}
|
|
BuildRequires: %{python_module gevent}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Flask >= 2.2.4
|
|
Requires: python-Werkzeug >= 2.0
|
|
Requires: python-brotlicffi
|
|
Requires: python-decorator
|
|
Requires: python-flasgger
|
|
Requires: python-gevent
|
|
Requires: python-six
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
httpbin(1): HTTP Request & Response Service
|
|
|
|
Testing an HTTP Library can become difficult sometimes.
|
|
RequestBin is fantastic for testing POST requests, but doesn't let
|
|
you control the response. This exists to cover
|
|
all kinds of HTTP scenarios. Additional endpoints are being considered.
|
|
|
|
All endpoint responses are JSON-encoded.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{modname}-%{version}
|
|
|
|
%build
|
|
export LANG=en_US.UTF-8
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
export LANG=en_US.UTF-8
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/httpbin
|
|
%{python_sitelib}/httpbin-%{version}*-info
|
|
|
|
%changelog
|