aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-mysqlclient/APKBUILD
blob: 2ebcf2847b228038502fdb7cf97df418ff43cde4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-mysqlclient
pkgver=1.3.14
pkgrel=3
pkgdesc="MySQL database connector for Python (with py3 support)"
url="https://mysqlclient.readthedocs.io/"
arch="all"
license="GPL-2.0"
makedepends="python3-dev py3-setuptools mariadb-dev"
source="mysqlclient-python-$pkgver.tar.gz::https://github.com/PyMySQL/mysqlclient-python/archive/$pkgver.tar.gz"
builddir="$srcdir/mysqlclient-python-$pkgver"

replaces="py-mysqlclient" # Backwards compatibility
provides="py-mysqlclient=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	CFLAGS="$CFLAGS -I/usr/include/mysql" python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="480e36f7d7b31851f2d50eb3f6f2e8009277e8c5fff8ea8e5d2a3bc2424a5f13735e6c1fa620d17383ac0dd5020440425fcf8781911c3360f752e344813a7ddb  mysqlclient-python-1.3.14.tar.gz"