# HG changeset patch # User Hans-G?nter Theisgen # Date 1657719474 -3600 # Node ID d7ed974f0f390001c7bf670d22f118a9a0b43e72 # Parent d715116140972f097ab59b1ea6ff0615da2a8193 updated python-mysql (1.2.3 -> 1.2.5) diff -r d71511614097 -r d7ed974f0f39 python-mysql/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-mysql/description.txt Wed Jul 13 14:37:54 2022 +0100 @@ -0,0 +1,8 @@ +MySQLdb is an interface to the popular MySQL database server for Python. +The design goals are: + +- Compliance with Python database API version 2.0 [PEP-0249] +- Thread-safety +- Thread-friendliness (threads will not block each other) + +MySQL-3.23 through 5.5 and Python-2.4 through 2.7 are currently supported. diff -r d71511614097 -r d7ed974f0f39 python-mysql/receipt --- a/python-mysql/receipt Wed Jul 13 14:28:15 2022 +0100 +++ b/python-mysql/receipt Wed Jul 13 14:37:54 2022 +0100 @@ -1,18 +1,20 @@ # SliTaz package receipt. PACKAGE="python-mysql" -SOURCE="MySQL-python" -VERSION="1.2.3" +VERSION="1.2.5" CATEGORY="development" -SHORT_DESC="A Python interface to MySQL ." +SHORT_DESC="A Python interface to MySQL." MAINTAINER="claudinei@slitaz.org" LICENSE="GPL" -TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="http://mysql-python.sourceforge.net/" -WGET_URL="$SF_MIRROR/mysql-python/$TARBALL" +WEB_SITE="https://pypi.org/project/MySQL-python/" +REPOLOGY="python:mysql-python" -DEPENDS="python libmysqlclient zlib openssl" -BUILD_DEPENDS="python-dev python-setuptools mysql-dev" +SOURCE="MySQL-python" +TARBALL="$SOURCE-$VERSION.zip" +WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" + +DEPENDS="libmysqlclient openssl python zlib" +BUILD_DEPENDS="mysql-dev python-dev python-setuptools" # What is the latest version available today? current_version() @@ -26,15 +28,14 @@ compile_rules() { sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg - python setup.py build + python setup.py build && python setup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr - cp -a $install/usr/lib $fs/usr + cook_copy_folders lib } # Remove old package. @@ -43,4 +44,3 @@ [ ! -d "$1/var/lib/tazpkg/installed/mysql-python" ] || rm -rf "$1/var/lib/tazpkg/installed/mysql-python" } -