dev-python/pymssql: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-03-03 15:13:57 +01:00
parent 5141dcfc3e
commit 442a419463
3 changed files with 0 additions and 61 deletions

View File

@@ -1,2 +1 @@
DIST pymssql-2.1.3.tar.gz 897987 BLAKE2B e105dd8d5dbbad5de566b9179f799ad66eb420f60464e8061470b1abb6ecf38f35ad7992ded40f2cd62c76a8e04255eb647e30df5c9bc4059334a1d5d4677e73 SHA512 a659cb8f077ddbe5e8de0b9b118d8bcc0c87128c0be4ff14343983e7029594e63ba6fb8a88992dc1f058df3c1ebbbd69cf371bf95a0918954cd0cec14c1cb5cb
DIST pymssql-2.1.5.tar.gz 167928 BLAKE2B c94fc29fa9d83627dbee05095a7c0d6e4e2d42ac34b0e6801bbc757d89728aee409c98519d6e8bfe8d5009f06f88bd23a3e62c050f2c964cb7139bdd3185a0b5 SHA512 7cc7336d4c2fcb7c3958fb3127801e3505fd93259d1aaef40a67941ef5aa519e285cdb04fd378c9712f29b0f8a25ce1747a4a8dc21ec57b004c9f0ceb8f5afab

View File

@@ -1,13 +0,0 @@
--- a/_mssql.pyx
+++ b/_mssql.pyx
@@ -34,6 +34,10 @@ DEF EXCOMM = 9
# Provide constants missing in FreeTDS 0.82 so that we can build against it
DEF DBVERSION_71 = 5
DEF DBVERSION_72 = 6
+# See /usr/include/sybdb.h - DBVERSION_80 is not defined in FreeTDS 1.00.13
+# (cf. http://www.freetds.org/userguide/choosingtdsprotocol.htm)
+# 8.0 was actually 7.1 so set it to the same value
+DEF DBVERSION_80 = 5
ROW_FORMAT_TUPLE = 1
ROW_FORMAT_DICT = 2

View File

@@ -1,47 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_7 )
inherit distutils-r1
DESCRIPTION="Simple MSSQL python extension module"
HOMEPAGE="https://www.pymssql.org/ https://pypi.org/project/pymssql/"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86"
IUSE="test"
# tests need a running instance of freetds
RESTRICT="test"
RDEPEND=">=dev-db/freetds-0.63[mssql]"
DEPEND="
${RDEPEND}
dev-python/cython[${PYTHON_USEDEP}]
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/unittest2[${PYTHON_USEDEP}]
)"
PATCHES=(
"${FILESDIR}"/${PN}-2.1.3-DBVERSION_80.patch
"${FILESDIR}"/${PN}-2.1.3-remove-setuptools_git.patch
)
python_prepare_all() {
# delete stale cython .c file
# this can cause issues with the patches
rm {_mssql,pymssql}.c || die
distutils-r1_python_prepare_all
}
python_test() {
py.test -v || die "Tests fail with ${EPYTHON}"
}