aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-sqlalchemy/APKBUILD
blob: 55c9a45c71b10c8f37b2e68e58abefdbe88b49ba (plain)
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
29
30
31
32
33
34
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-sqlalchemy
_pkgname=SQLAlchemy
pkgver=1.3.16
pkgrel=0
pkgdesc="An object relational mapper for Python"
options="!check" # 2 failed, 8530 passed, 1009 skipped
url="https://pypi.python.org/pypi/SQLAlchemy"
arch="all"
license="MIT"
makedepends="python3-dev py3-setuptools"
checkdepends="
	py3-pytest py3-mock py3-pytest-xdist
"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

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

build() {
	python3 setup.py build
}

check() {
	pytest-3 -n $JOBS
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="8eae306fc21f22da7411badd678f31129ecac18f9a4d8526101ecd0fa8c77e30a4b7a8e4361fff3fc08b031d90cd82343321c1ea9175ad187fe28a25ad9ea6d8  SQLAlchemy-1.3.16.tar.gz"