desktop/python-sqlalchemy/PKGBUILD
AlmAck 08a66c4024 python3 rebuild for 3.5
new pkg added to fullfill checkdepends
new order file python3.order
2016-03-16 22:36:13 +01:00

66 lines
1.7 KiB
Bash

# Maintainer: Manuel 'UtG' <utg.chakra.linux[at]gmail[dot]com>
# Contributor: Julien Humbert <julroy67 at gmail dot com>
# Contributor: Angel 'angvp' Velasquez <angvp at archlinux dot com.ve>
pkgbase=python-sqlalchemy
pkgname=('python3-sqlalchemy' 'python2-sqlalchemy')
pkgver=1.0.12
pkgrel=1
pkgdesc="Python SQL toolkit and Object Relational Mapper"
arch=('x86_64')
url="http://www.sqlalchemy.org/"
license=('MIT')
makedepends=('python3-setuptools' 'python2-setuptools')
checkdepends=('python2-pytest' 'python3-pytest' 'python2-mock' 'python3-mock')
source=("https://pypi.python.org/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz")
md5sums=('6d19ef29883bbebdcac6613cf391cac4')
prepare() {
cp -a SQLAlchemy-$pkgver SQLAlchemy2-$pkgver
}
build() {
cd SQLAlchemy-$pkgver
python3 setup.py build
cd ../SQLAlchemy2-$pkgver
python2 setup.py build
}
check() {
check() {
cd SQLAlchemy-${pkgver}
python3 setup.py test
cd ../SQLAlchemy2-$pkgver
python2 setup.py test
}
}
package_python3-sqlalchemy() {
pkgdesc='Python SQL toolkit and Object Relational Mapper'
depends=('python3')
optdepends=('python3-psycopg2: connect to PostgreSQL database')
cd SQLAlchemy-${pkgver}
python3 setup.py install --root="${pkgdir}"
install -D -m644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-sqlalchemy() {
pkgdesc='Python 2 SQL toolkit and Object Relational Mapper'
depends=('python2')
optdepends=('python2-psycopg2: connect to PostgreSQL database')
provides=('python-sqlalchemy')
replaces=('python-sqlalchemy')
conflicts=('python-sqlalchemy')
cd SQLAlchemy2-$pkgver
python2 setup.py install --root="$pkgdir"
install -D -m644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}