mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 18:14:51 +08:00
68 lines
1.8 KiB
Bash
68 lines
1.8 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.1.15
|
|
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.io/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz"{,.asc})
|
|
validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1')
|
|
md5sums=('077f9bd3339957f53068b5572a152674'
|
|
'SKIP')
|
|
|
|
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')
|
|
provides=('python-sqlalchemy')
|
|
replaces=('python-sqlalchemy')
|
|
conflicts=('python-sqlalchemy')
|
|
|
|
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')
|
|
|
|
cd SQLAlchemy2-$pkgver
|
|
python2 setup.py install --root="$pkgdir"
|
|
install -D -m644 LICENSE \
|
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|