[packages/python3-socksio] - new
qboosh
qboosh at pld-linux.org
Thu Jan 8 22:10:19 CET 2026
commit 969565cc7ef9b4ba7eb3830aa4b53c7484620c28
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jan 8 22:10:09 2026 +0100
- new
python3-socksio.spec | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++
socksio-flit.patch | 9 +++++
2 files changed, 111 insertions(+)
---
diff --git a/python3-socksio.spec b/python3-socksio.spec
new file mode 100644
index 0000000..26792df
--- /dev/null
+++ b/python3-socksio.spec
@@ -0,0 +1,102 @@
+#
+# Conditional build:
+%bcond_without doc # API documentation
+%bcond_without tests # unit tests
+
+Summary: Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5
+Summary(pl.UTF-8): Implementacja SOCKS4, SOCKS4A i SOCKS5 bez we/wy
+Name: python3-socksio
+Version: 1.0.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/socksio/
+Source0: https://files.pythonhosted.org/packages/source/s/socksio/socksio-%{version}.tar.gz
+# Source0-md5: c842dbff834af52dd070ecf297a14337
+Patch0: socksio-flit.patch
+URL: https://pypi.org/project/socksio/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-flit_core >= 2
+BuildRequires: python3-flit_core < 4
+BuildRequires: python3-modules >= 1:3.6
+%if %{with tests}
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-cov
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires: python3-sphinx_rtd_theme
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+socksio is a sans-I/O library similar to h11 or h2, this means the
+library itself does not handle the actual sending of the bytes through
+the network, it only deals with the implementation details of the
+SOCKS protocols so you can use it in any I/O library you want.
+
+%description -l pl.UTF-8
+socksio to biblioteka bez we/wy, podobnie jak h11 czy h2, co oznacza,
+że sama biblioteka nie obsługuje właściwego wysyłania bajtów poprzez
+sieć, ale obsługuje tylko szczegóły implementacyjne protokołów SOCKS,
+więc można jej używać z dowolnie wybraną biblioteką we/wy.
+
+%package apidocs
+Summary: API documentation for Python socksio module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona socksio
+Group: Documentation
+
+%description apidocs
+API documentation for Python socksio module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona socksio.
+
+%prep
+%setup -q -n socksio-%{version}
+%patch -P0 -p1
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_cov.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+%{__make} -C docs html \
+ SPHINXBUILD=sphinx-build-3 \
+ SPHINXOPTS=
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-socksio-%{version}
+cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-socksio-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%{py3_sitescriptdir}/socksio
+%{py3_sitescriptdir}/socksio-%{version}.dist-info
+%{_examplesdir}/%{name}-%{version}
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_static,*.html,*.js}
+%endif
diff --git a/socksio-flit.patch b/socksio-flit.patch
new file mode 100644
index 0000000..c75fed0
--- /dev/null
+++ b/socksio-flit.patch
@@ -0,0 +1,9 @@
+--- socksio-1.0.0/pyproject.toml.orig 2020-01-09 19:52:35.372120100 +0100
++++ socksio-1.0.0/pyproject.toml 2026-01-08 22:05:39.673245542 +0100
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["flit_core >=2,<3"]
++requires = ["flit_core >=2,<4"]
+ build-backend = "flit_core.buildapi"
+
+ [tool.flit.metadata]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-socksio.git/commitdiff/969565cc7ef9b4ba7eb3830aa4b53c7484620c28
More information about the pld-cvs-commit
mailing list