2015-08-26 15:47:37 +00:00
|
|
|
|
#
|
|
|
|
|
|
# spec file for package python-hpack
|
|
|
|
|
|
#
|
2023-04-12 15:53:13 +00:00
|
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2015-08-26 15:47:37 +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:32:09 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-08-26 15:47:37 +00:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-23 05:51:35 +00:00
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-08-26 15:47:37 +00:00
|
|
|
|
Name: python-hpack
|
2020-12-15 21:39:09 +00:00
|
|
|
|
Version: 4.0.0
|
2015-08-26 15:47:37 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
|
Summary: Pure-Python HPACK header compression
|
|
|
|
|
|
License: MIT
|
2019-01-02 12:47:51 +00:00
|
|
|
|
URL: https://github.com/python-hyper/hpack
|
2020-12-15 21:39:09 +00:00
|
|
|
|
Source0: https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{version}.tar.gz
|
2020-12-15 21:40:02 +00:00
|
|
|
|
# Content of https://github.com/python-hyper/hpack/tree/master/test/test_fixtures
|
2020-12-15 21:39:09 +00:00
|
|
|
|
Source1: test_fixtures.tar.xz
|
2020-01-15 13:25:19 +00:00
|
|
|
|
Patch0: healthcheck.patch
|
2017-04-23 05:51:35 +00:00
|
|
|
|
BuildRequires: %{python_module hypothesis}
|
2020-05-06 07:38:26 +00:00
|
|
|
|
BuildRequires: %{python_module pytest}
|
2018-12-04 17:14:26 +00:00
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-08-26 15:47:37 +00:00
|
|
|
|
BuildArch: noarch
|
2017-04-23 05:51:35 +00:00
|
|
|
|
%python_subpackages
|
2015-08-26 15:47:37 +00:00
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use in
|
|
|
|
|
|
Python programs that implement HTTP/2. It also contains a compatibility layer that
|
|
|
|
|
|
automatically enables the use of nghttp2 if it’s available.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-12-15 21:39:09 +00:00
|
|
|
|
%autosetup -p1 -a1 -n hpack-%{version}
|
2015-08-26 15:47:37 +00:00
|
|
|
|
|
|
|
|
|
|
%build
|
2017-04-23 05:51:35 +00:00
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
|
|
%python_build
|
2015-08-26 15:47:37 +00:00
|
|
|
|
|
|
|
|
|
|
%install
|
2017-04-23 05:51:35 +00:00
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
|
|
%python_install
|
2019-07-19 09:56:34 +00:00
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2015-08-26 15:47:37 +00:00
|
|
|
|
|
2017-04-23 05:51:35 +00:00
|
|
|
|
%check
|
2019-07-19 09:56:34 +00:00
|
|
|
|
%pytest -k "not (test_can_decode_a_story or test_can_decode_a_story_no_huffman or test_can_encode_a_story_with_huffman or test_can_encode_a_story_no_huffman or test_decode_either_succeeds_or_raises_error)"
|
2015-08-26 15:47:37 +00:00
|
|
|
|
|
2017-04-23 05:51:35 +00:00
|
|
|
|
%files %{python_files}
|
2018-12-04 17:14:26 +00:00
|
|
|
|
%license LICENSE
|
2020-12-15 21:39:09 +00:00
|
|
|
|
%doc CHANGELOG.rst CONTRIBUTORS.rst README.rst
|
2017-04-23 05:51:35 +00:00
|
|
|
|
%{python_sitelib}/hpack
|
|
|
|
|
|
%{python_sitelib}/hpack-%{version}-py%{python_version}.egg-info
|
2015-08-26 15:47:37 +00:00
|
|
|
|
|
|
|
|
|
|
%changelog
|