From 781668561dc736c45bf203629bebd21bb1a3002d Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 16 Jul 2017 02:06:38 +0000 Subject: python-sqlalchemy: initial inclusion. dep of flexget --- abs/core/python_modules/python-sqlalchemy/PKGBUILD | 63 ++++++++++++++++++++++ .../python_modules/python-sqlalchemy/__changelog | 2 + 2 files changed, 65 insertions(+) create mode 100644 abs/core/python_modules/python-sqlalchemy/PKGBUILD create mode 100644 abs/core/python_modules/python-sqlalchemy/__changelog diff --git a/abs/core/python_modules/python-sqlalchemy/PKGBUILD b/abs/core/python_modules/python-sqlalchemy/PKGBUILD new file mode 100644 index 0000000..33c6497 --- /dev/null +++ b/abs/core/python_modules/python-sqlalchemy/PKGBUILD @@ -0,0 +1,63 @@ +# $Id$ +# Maintainer: Angel Velasquez +# Maintainer: Felix Yan +# Contributor: Sébastien Luttringer + +pkgbase=python-sqlalchemy +pkgname=('python2-sqlalchemy') +#pkgname=('python2-sqlalchemy') +pkgver=1.1.11 +pkgrel=1 +arch=('i686' 'x86_64') # python2 package contain .so +url="http://www.sqlalchemy.org/" +license=('MIT') +makedepends=('python2-setuptools') +checkdepends=('python2-pytest-runner' 'python2-pytest-xdist' 'python2-mock') +source=("https://pypi.io/packages/source/S/SQLAlchemy/SQLAlchemy-$pkgver.tar.gz"{,.asc}) +validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') +sha512sums=('322ec0baa6360099eb000ddd36e28267f64019eb72201ecf60fc478591679e0dd5d2b1139a93036d2ec0165c588ea5836a67ed21dbf7c423b64432589bd73de4' + 'SKIP') + +prepare() { + cp -a SQLAlchemy-$pkgver SQLAlchemy2-$pkgver +} + +build() { +# cd "$srcdir"/SQLAlchemy-$pkgver +# python setup.py build + + cd "$srcdir"/SQLAlchemy2-$pkgver + python2 setup.py build +} + +check() { +# cd "$srcdir"/SQLAlchemy-$pkgver +# python setup.py pytest + + cd "$srcdir"/SQLAlchemy2-$pkgver + python2 setup.py pytest +} + +package_python-sqlalchemy() { + pkgdesc='Python SQL toolkit and Object Relational Mapper' + depends=('python') + optdepends=('python-psycopg2: connect to PostgreSQL database') + + cd SQLAlchemy-$pkgver + python 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" +} + +# vim:set ts=2 sw=2 ft=sh et: diff --git a/abs/core/python_modules/python-sqlalchemy/__changelog b/abs/core/python_modules/python-sqlalchemy/__changelog new file mode 100644 index 0000000..4f818ef --- /dev/null +++ b/abs/core/python_modules/python-sqlalchemy/__changelog @@ -0,0 +1,2 @@ +PKGBUILD: don't build py 3 stuff + -- cgit v0.12