aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-sqlalchemy-migrate/APKBUILD
blob: 45fad166ac69adf6530baee7178b72eb724d3663 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-sqlalchemy-migrate
_pkgname=sqlalchemy-migrate
pkgver=0.13.0
pkgrel=0
pkgdesc="SQLAlchemy Schema Migration Tools"
url="https://opendev.org/x/sqlalchemy-migrate"
arch="noarch"
license="MIT"
depends="
	python3
	py3-pbr
	py3-sqlalchemy
	py3-decorator
	py3-six
	py3-sqlparse
	py3-tempita
	"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

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

export PBR_VERSION="$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python*/site-packages/migrate/tests
}

sha512sums="1ca826a5d80c1373ffc4b2366dfb6d5dd24204964462873451c97d8ff4d75fc6c63f663c4769b7f6cc00002f6a98d425f41d759e5c010b4b81a8b74ffbb102b6  sqlalchemy-migrate-0.13.0.tar.gz"