Blame python-socksio.spec

dfb6116
%global srcname socksio
dfb6116
%global _description %{expand:
dfb6116
Client-side sans-I/O SOCKS proxy implementation. Supports SOCKS4, SOCKS4A, and
dfb6116
SOCKS5.  socksio is a sans-I/O library similar to h11 or h2, this means the
dfb6116
library itself does not handle the actual sending of the bytes through the
dfb6116
network, it only deals with the implementation details of the SOCKS protocols
dfb6116
so you can use it in any I/O library you want.}
dfb6116
dfb6116
dfb6116
Name:           python-%{srcname}
dfb6116
Version:        1.0.0
dfb6116
Release:        %autorelease
dfb6116
Summary:        Client-side sans-I/O SOCKS proxy implementation
dfb6116
License:        MIT
dfb6116
URL:            https://github.com/sethmlarson/socksio
dfb6116
Source:         %pypi_source
dfb6116
# downstream-only patch
dfb6116
Patch:          0001-Relax-flit_core-dependency.patch
dfb6116
BuildArch:      noarch
dfb6116
BuildRequires:  python3-devel
dfb6116
dfb6116
dfb6116
%description %{_description}
dfb6116
dfb6116
dfb6116
%package -n python3-%{srcname}
dfb6116
Summary:        %{summary}
92eb957
BuildRequires:  %{py3_dist pytest}
dfb6116
dfb6116
dfb6116
%description -n python3-%{srcname} %{_description}
dfb6116
dfb6116
dfb6116
%prep
dfb6116
%autosetup -n %{srcname}-%{version} -p 1
dfb6116
# drop coverage addopts
dfb6116
rm pytest.ini
dfb6116
dfb6116
dfb6116
%generate_buildrequires
dfb6116
%pyproject_buildrequires -r
dfb6116
dfb6116
dfb6116
%build
dfb6116
%pyproject_wheel
dfb6116
dfb6116
dfb6116
%install
dfb6116
%pyproject_install
dfb6116
%pyproject_save_files %{srcname}
dfb6116
dfb6116
dfb6116
%check
dfb6116
%pytest
dfb6116
dfb6116
dfb6116
%files -n python3-%{srcname} -f %{pyproject_files}
dfb6116
%doc README.md CHANGELOG.md
9d07e50
# flit does not mark licenses as License-Files yet
9d07e50
%license %{python3_sitelib}/*.dist-info/LICENSE
dfb6116
dfb6116
dfb6116
%changelog
dfb6116
%autochangelog