diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-08-08 20:11:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-08-08 20:11:47 +0100 |
commit | f625b9919a60a30f1bd860f7d1b2eac183ced593 (patch) | |
tree | 7543f00925ff7277e31881de0a87801681f6f92f /dev-python/pymssql | |
parent | e3872864be25f7421015bef2732fa57c0c9fb726 (diff) |
gentoo resync : 08.08.2018
Diffstat (limited to 'dev-python/pymssql')
-rw-r--r-- | dev-python/pymssql/Manifest | 4 | ||||
-rw-r--r-- | dev-python/pymssql/files/pymssql-2.1.3-DBVERSION_80.patch | 13 | ||||
-rw-r--r-- | dev-python/pymssql/files/pymssql-2.1.3-remove-setuptools_git.patch | 10 | ||||
-rw-r--r-- | dev-python/pymssql/pymssql-2.1.3.ebuild | 47 |
4 files changed, 74 insertions, 0 deletions
diff --git a/dev-python/pymssql/Manifest b/dev-python/pymssql/Manifest index 32517f7c110a..03410d83e69c 100644 --- a/dev-python/pymssql/Manifest +++ b/dev-python/pymssql/Manifest @@ -1,3 +1,7 @@ +AUX pymssql-2.1.3-DBVERSION_80.patch 451 BLAKE2B e9ab70a24db87e2f69eb502c491746ed3b83d5b50c8e87330c5e209c4f0b89d889fbba980721958db0fea2c2e0d944d7fd1692f018089946c8dd7c0d6f46ff58 SHA512 e596231f5d2ba6354b8e942d270079bb6ff65ff362640f99e631407107ec11e1f8c20097f9fb614066fde83dcd89d5c64181dddb9bf8c52f12b355e68f248f28 +AUX pymssql-2.1.3-remove-setuptools_git.patch 243 BLAKE2B 51f598a199867a6278518a0d204a3bfffcba662e22377d0b927e404a420a32a771a56ab23c99b8fa819b216e95efd8efdb8f61955da1ed79e64c84cb6b6634d1 SHA512 e8a24dfd4e4c6320ef854592d890a8e34870884ac05e0e60a52bd4e05f5eb7fbac86311da98d1ba8be2a55233788e070f7dfc529570c1cefe25471abbd22fa20 DIST pymssql-1.0.2.tar.gz 175469 BLAKE2B a88c04be044478c2bec76a15e05ff751b961d253ca2e071ee8293c0899e091f96206a87486333f2543de609c7b38ff9e8a1a4ba7686625489bb9ed5c56e3cf19 SHA512 6e9a2d26f2cc33bac093f2a2a41771aa41ba336413076c793137558c05e48cea7409f74f35530939b36a708cc47c66ec0dc765a768bd5f857642553568fe859e +DIST pymssql-2.1.3.tar.gz 897987 BLAKE2B e105dd8d5dbbad5de566b9179f799ad66eb420f60464e8061470b1abb6ecf38f35ad7992ded40f2cd62c76a8e04255eb647e30df5c9bc4059334a1d5d4677e73 SHA512 a659cb8f077ddbe5e8de0b9b118d8bcc0c87128c0be4ff14343983e7029594e63ba6fb8a88992dc1f058df3c1ebbbd69cf371bf95a0918954cd0cec14c1cb5cb EBUILD pymssql-1.0.2-r1.ebuild 627 BLAKE2B 033a138c490f0373131cecd00a81f4ac042c5ea437af90e42d391b44b7a8d93436fff830a2e0759bcad174f1d2b5bf024f5f3935cfb0aacfa47503cff86d056e SHA512 0cad3e6d596fb53a39be2560569fcca399d2fc26e171996d1882883823a219ce547f851c6883610b34b65dac90d89e2131b9b7b667ea1093f62668d500b45232 +EBUILD pymssql-2.1.3.ebuild 1105 BLAKE2B faf508613dfe959006d9a206c50c46a5db9619eb72e5619b7d6630413de40517427bfe2a6d6cca90960a4cd77bfd9a6e1f6b526a3c28420e429dca9241362e52 SHA512 8dd849c3b0ae835a401e670603e40809046a81cc67d243cb8d8c7c51d9d7c06ed7ad5be3ed74587fb3211a855229d46b23764869953ffcd5393d4f01038c7163 MISC metadata.xml 396 BLAKE2B bc47cebbbeecb1c410ad5ffba2ebd275b9463e73f984ed9bac84720e3993365aca52a7b32a010c61a7e4e98e14b17aa3fdccf74692e327717fd1113ce087e263 SHA512 dea6de0ceb2f3661fad588992687c8bcda6204b731756390ad5d1a0f2ca2bcee77075e72b80f72a31ce681b57aafd830ffe984279cd8cfc96f520c04aa2e0eed diff --git a/dev-python/pymssql/files/pymssql-2.1.3-DBVERSION_80.patch b/dev-python/pymssql/files/pymssql-2.1.3-DBVERSION_80.patch new file mode 100644 index 000000000000..9d72a9817358 --- /dev/null +++ b/dev-python/pymssql/files/pymssql-2.1.3-DBVERSION_80.patch @@ -0,0 +1,13 @@ +--- 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 diff --git a/dev-python/pymssql/files/pymssql-2.1.3-remove-setuptools_git.patch b/dev-python/pymssql/files/pymssql-2.1.3-remove-setuptools_git.patch new file mode 100644 index 000000000000..1a35cc064f78 --- /dev/null +++ b/dev-python/pymssql/files/pymssql-2.1.3-remove-setuptools_git.patch @@ -0,0 +1,10 @@ +--- a/setup.py ++++ b/setup.py +@@ -472,7 +472,6 @@ setup( + "Operating System :: Unix", + ], + zip_safe = False, +- setup_requires=['setuptools_git'], + tests_require=['pytest', 'unittest2'], + ext_modules = ext_modules(), + diff --git a/dev-python/pymssql/pymssql-2.1.3.ebuild b/dev-python/pymssql/pymssql-2.1.3.ebuild new file mode 100644 index 000000000000..2f0c0f3a690d --- /dev/null +++ b/dev-python/pymssql/pymssql-2.1.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit distutils-r1 + +DESCRIPTION="Simple MSSQL python extension module" +HOMEPAGE="http://www.pymssql.org/ https://pypi.python.org/pypi/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 ~sh ~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}" +} |