[packages/python3-aiomysql] Initial

arekm arekm at pld-linux.org
Sat Apr 25 22:11:03 CEST 2026


commit e6eef134c720ce24ec67b811c8c23f53f190268c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Apr 25 22:10:38 2026 +0200

    Initial

 python3-aiomysql.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
---
diff --git a/python3-aiomysql.spec b/python3-aiomysql.spec
new file mode 100644
index 0000000..b62f4d6
--- /dev/null
+++ b/python3-aiomysql.spec
@@ -0,0 +1,68 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (require running MySQL server)
+
+Summary:	MySQL driver for asyncio
+Summary(pl.UTF-8):	Sterownik MySQL dla asyncio
+Name:		python3-aiomysql
+Version:	0.3.2
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/aiomysql/
+Source0:	https://files.pythonhosted.org/packages/source/a/aiomysql/aiomysql-%{version}.tar.gz
+# Source0-md5:	b231ff658904964e25912f0e033f94e8
+URL:		https://pypi.org/project/aiomysql/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
+BuildRequires:	python3-setuptools >= 1:80
+BuildRequires:	python3-setuptools_scm >= 7
+%if %{with tests}
+BuildRequires:	python3-PyMySQL >= 1.0
+BuildRequires:	python3-pytest >= 8
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-PyMySQL >= 1.0
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+aiomysql is a library for accessing a MySQL database from the asyncio
+framework. It is built on top of PyMySQL and provides the same API but
+with non-blocking I/O.
+
+%description -l pl.UTF-8
+aiomysql to biblioteka udostępniająca dostęp do baz danych MySQL z
+poziomu asyncio. Jest zbudowana na bazie PyMySQL i udostępnia takie
+samo API, ale z nieblokującym wejściem/wyjściem.
+
+%prep
+%setup -q -n aiomysql-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/docs
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/examples
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.txt CONTRIBUTING.rst LICENSE README.rst examples
+%{py3_sitescriptdir}/aiomysql
+%{py3_sitescriptdir}/aiomysql-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-aiomysql.git/commitdiff/e6eef134c720ce24ec67b811c8c23f53f190268c



More information about the pld-cvs-commit mailing list