File python-falcon.spec of Package python-falcon
#
# spec file for package python3-falcon
#
Name: python3-falcon
Version: 2.0.0
Release: 0
Summary: A web framework for building APIs and app backends
License: Apache-2.0
Group: Development/Libraries/Python
Url: https://falconframework.org/
Source0: https://pypi.io/packages/source/f/falcon/falcon-%{version}.tar.gz#/python-falcon_%{version}.orig.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-Cython
BuildRequires: fdupes
Requires: python3-jsonschema
Requires: python3-msgpack
%description
Falcon is a Python framework for building cloud
APIs. It encourages the REST architectural style, and tries to do
as little as possible while remaining effective.
Built with Cython.
%prep
%setup -q -n falcon-%{version}
sed -Ei 's/mujson/json/g' tests/test_media_handlers.py
%if 0%{?centos_version} == 700
sed -Ei 's/ujson/json/g' tests/test_media_handlers.py
%endif
sed -Ei 's/sys\.version_info >= \(3, 5\)/False/' tests/test_media_handlers.py
sed -i 's/test=pytest/test=pytest-3/' setup.cfg
%build
%python_build
%install
%python_install
%fdupes -s %{buildroot}%{python3_sitearch}
%files
%doc README.rst CHANGES.rst
%license LICENSE
%{python3_sitearch}/falcon/
%{python3_sitearch}/falcon-%{version}-py*.egg-info
%{_bindir}/falcon-bench
%{_bindir}/falcon-print-routes
%changelog