2017-04-24 15:14:47 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package python-h2
|
|
|
|
|
#
|
2020-02-27 05:45:05 +00:00
|
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2017-04-24 15:14:47 +00:00
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2018-12-04 13:33:19 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-04-24 15:14:47 +00:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-14 08:37:54 +00:00
|
|
|
|
%bcond_without python2
|
2017-04-24 15:14:47 +00:00
|
|
|
|
Name: python-h2
|
2020-02-27 05:45:05 +00:00
|
|
|
|
Version: 3.2.0
|
2017-04-24 15:14:47 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: HTTP/2 State-Machine based protocol implementation
|
|
|
|
|
License: MIT
|
2019-03-28 08:45:02 +00:00
|
|
|
|
URL: https://github.com/python-hyper/hyper-h2
|
2017-04-24 15:14:47 +00:00
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/h/h2/h2-%{version}.tar.gz
|
2020-09-15 13:12:31 +00:00
|
|
|
|
# PATCH-FIX-UPSTREAM https://github.com/python-hyper/hyper-h2/commit/c5d962a14373acf534be620d4e597dfeaff8a2ef bump hyperframe and fix protocol error
|
|
|
|
|
Patch0: hyperframe.patch
|
2019-03-28 08:45:02 +00:00
|
|
|
|
BuildRequires: %{python_module hpack >= 2.3}
|
2020-09-15 13:12:31 +00:00
|
|
|
|
BuildRequires: %{python_module hyperframe >= 6.0}
|
2017-04-24 15:14:47 +00:00
|
|
|
|
BuildRequires: %{python_module hypothesis}
|
2019-07-26 10:06:21 +00:00
|
|
|
|
BuildRequires: %{python_module pytest}
|
2017-04-24 15:14:47 +00:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-03-28 08:45:02 +00:00
|
|
|
|
Requires: python-hpack >= 2.3
|
2020-09-15 13:12:31 +00:00
|
|
|
|
Requires: python-hyperframe >= 6.0
|
2017-04-24 15:14:47 +00:00
|
|
|
|
BuildArch: noarch
|
2020-03-14 08:37:54 +00:00
|
|
|
|
%if %{with python2}
|
|
|
|
|
BuildRequires: python-enum34 >= 1.1.6
|
|
|
|
|
%endif
|
2019-07-26 10:06:33 +00:00
|
|
|
|
%ifpython2
|
|
|
|
|
Requires: python-enum34 >= 1.1.6
|
|
|
|
|
%endif
|
2017-04-24 15:14:47 +00:00
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Pure-Python implementation of a HTTP/2 protocol stack.
|
|
|
|
|
It’s written from the ground up to be embeddable in whatever program
|
|
|
|
|
you choose to use, ensuring that you can speak HTTP/2 regardless of
|
|
|
|
|
your programming paradigm.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n h2-%{version}
|
2020-09-15 13:12:31 +00:00
|
|
|
|
%patch0 -p1
|
2017-04-24 15:14:47 +00:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
2019-05-14 20:03:32 +00:00
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-04-24 15:14:47 +00:00
|
|
|
|
|
|
|
|
|
%check
|
2019-07-26 09:58:40 +00:00
|
|
|
|
# test_changing_max_frame_size - flaky in OBS
|
2019-12-04 09:27:23 +00:00
|
|
|
|
# test_range_of_acceptable_outputs -flaky in OBS
|
|
|
|
|
%pytest -k 'not (test_changing_max_frame_size or test_range_of_acceptable_outputs)'
|
2017-04-24 15:14:47 +00:00
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-12-04 17:14:50 +00:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc HISTORY.rst README.rst
|
2017-04-24 15:14:47 +00:00
|
|
|
|
%{python_sitelib}/h2
|
2020-03-14 08:37:54 +00:00
|
|
|
|
%{python_sitelib}/h2-%{version}-py*.egg-info
|
2017-04-24 15:14:47 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|