dev-python/pyodbc: treeclean

Closes: https://bugs.gentoo.org/931931 (pkgremoved)
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2025-04-05 13:48:38 +05:00
parent 157a0c810a
commit 65b5a11cc6
4 changed files with 0 additions and 80 deletions

View File

@@ -1 +0,0 @@
DIST pyodbc-5.1.0.tar.gz 115450 BLAKE2B 8080db700abb952ae60045825f76e73a3d4a42f13c05e48eeb06574d5535f34345aa8bf2710730430229cb31b3d73c9fcb250d8d0fddabf94ecfcb24518bf931 SHA512 78817864d30048eed0c670a30e1cc66bc72edd6c21d069a5cc5831ed180b25a5b30d2bf2313628431943defbae66c2df96e90781ef17bb8929622b9f49cfcaab

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<bugs-to>https://github.com/mkleehammer/pyodbc/issues</bugs-to>
<remote-id type="pypi">pyodbc</remote-id>
<remote-id type="github">mkleehammer/pyodbc</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1,64 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..12} ) #py3.13 doesn't compile
inherit databases distutils-r1 optfeature pypi
DESCRIPTION="Python ODBC library"
HOMEPAGE="
https://pypi.org/project/pyodbc/
https://github.com/mkleehammer/pyodbc
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="mssql"
RDEPEND=">=dev-db/unixODBC-2.3.0"
DEPEND="${RDEPEND}"
BDEPEND="
test? (
${DATABASES_DEPEND[mysql]}
dev-db/myodbc:8.0
)
"
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# Broken test, generates a string longer than 4000 characters
tests/mysql_test.py::test_varchar
)
EPYTEST_IGNORE=(
# No easy way to run an SqlServer during tests
tests/sqlserver_test.py
)
python_test() {
export PYODBC_MYSQL="DRIVER=/usr/$(get_libdir)/myodbc-8.0/libmyodbc8a.so;SERVER=localhost;PORT=44444;DATABASE=test"
export PYODBC_POSTGRESQL="DRIVER=/usr/$(get_libdir)/psqlodbcw.so;SERVER=localhost;PORT=44445;DATABASE=test;UID=postgres"
epytest
}
src_test() {
emysql --start 44444
epostgres --start 44445
psql -U postgres -h 127.0.0.1 -p 44445 <<EOF
CREATE DATABASE test OWNER postgres
EOF
distutils-r1_src_test
epostgres --stop
emysql --stop
}
pkg_postinst() {
optfeature "MySQL support" dev-db/myodbc
optfeature "PostgreSQL support" dev-db/psqlodbc
}