update mysql-connector-python-8.0.28
This commit is contained in:
3
dev-python/mysql-connector-python/Manifest
Normal file
3
dev-python/mysql-connector-python/Manifest
Normal file
@@ -0,0 +1,3 @@
|
||||
DIST mysql-connector-python-8.0.28.tar.gz 15209508 BLAKE2B dbafbe19dc9e65e37598d40d98347902ecf281f4b086d0462df370bf143547881edeead0ad3d50d0fdcb1b861ad01b5123e4dc6884042e7b7e71e5e2e856e943 SHA512 7f03df4dae7766c9c207b408eb0e451c87fd97d84200573cdba3526b812b15c2078fcf3a697d9801b552164c4a0b7e8efe5450036d3c232e8c4402cb61849a6d
|
||||
EBUILD mysql-connector-python-8.0.28.ebuild 1586 BLAKE2B c2f26d253ac1eeaf97261857dc41bd1a82878b43e16127bef937fce0d1be9e04f453e3a506ee5e5699a5bd9897b64e48aa8feb2ee9e02e1a1b229adbcd641b4b SHA512 bee532307e292cb7e7750a2a523f316c0ef6028799171ba854612665d717af9c4b5ce8eda70c2d77d5b9d37d9bc2df84a1f7c21aa98214039ef5045e1b7fe835
|
||||
MISC metadata.xml 430 BLAKE2B 8dde94f4d1d72aa93dae9c26edea1a204b1cf2ca5e443dbcd6d16be221b763d8fb227b726d38fd03c20d05a29df900f65c3934b632a5226707ed98a4737e275f SHA512 8983ce4e3f8f1c36a02d67ef0133563c578b8583614c21be5507ddfc3ed949152973439f6bb596dc5c5117dc37f4acefd16f7eea73e710ab13c5277b4b8f02db
|
||||
15
dev-python/mysql-connector-python/metadata.xml
Normal file
15
dev-python/mysql-connector-python/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>mysql-bugs@gentoo.org</email>
|
||||
<name>MySQL</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>python@gentoo.org</email>
|
||||
<name>Python</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">mysql-connector-python</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python client library for MariaDB/MySQL"
|
||||
HOMEPAGE="https://dev.mysql.com/downloads/connector/python/"
|
||||
SRC_URI="https://github.com/mysql/mysql-connector-python/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="examples test"
|
||||
|
||||
BDEPEND=">=dev-libs/protobuf-3.6.1"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-db/mysql-connector-c-8.0
|
||||
>=dev-python/protobuf-python-3.6.1[${PYTHON_USEDEP}]
|
||||
dev-python/dnspython[${PYTHON_USEDEP}]
|
||||
"
|
||||
# tests/mysqld.py does not like MariaDB version strings.
|
||||
# See the regex MySQLServerBase._get_version.
|
||||
DEPEND="${RDEPEND} test? ( dev-db/mysql[server(+)] )"
|
||||
|
||||
# Tests currently fail.
|
||||
# mysql.connector.errors.DatabaseError: 1300 (HY000): Invalid utf8 character string: ''
|
||||
RESTRICT="test"
|
||||
|
||||
DOCS=( README.txt CHANGES.txt README.rst )
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" unittests.py --with-mysql="${EPREFIX}/usr" --unix-socket="${T}" --mysql-topdir="${T}"
|
||||
}
|
||||
|
||||
# Yeah, this is really broken, but the extension will only build this way during "install"
|
||||
python_install() {
|
||||
distutils-r1_python_install \
|
||||
--with-mysql-capi="${EPREFIX}/usr" \
|
||||
--with-protobuf-include-dir="${EPREFIX}/usr/include/google/protobuf/" \
|
||||
--with-protobuf-lib-dir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--with-protoc="${EPREFIX}/usr/bin/protoc"
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
if use examples ; then
|
||||
dodoc -r examples
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user