summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-07-16 02:06:38 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-07-16 02:06:38 (GMT)
commit781668561dc736c45bf203629bebd21bb1a3002d (patch)
tree119a8e47fd829f8beb5df4872ac4048b19cd6e83 /abs/core/python_modules
parent2c281b369b0fb3a42e0b79689742321528b41587 (diff)
downloadlinhes_pkgbuild-781668561dc736c45bf203629bebd21bb1a3002d.zip
linhes_pkgbuild-781668561dc736c45bf203629bebd21bb1a3002d.tar.gz
linhes_pkgbuild-781668561dc736c45bf203629bebd21bb1a3002d.tar.bz2
python-sqlalchemy: initial inclusion. dep of flexget
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/python-sqlalchemy/PKGBUILD63
-rw-r--r--abs/core/python_modules/python-sqlalchemy/__changelog2
2 files changed, 65 insertions, 0 deletions
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 <angvp@archlinux.org>
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Sébastien Luttringer <seblu@aur.archlinux.org>
+
+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
+