[arch-commits] Commit in python-testing.postgresql/repos (2 files)
Chih-Hsuan Yen
yan12125 at archlinux.org
Sun Nov 18 07:36:47 UTC 2018
Date: Sunday, November 18, 2018 @ 07:36:47
Author: yan12125
Revision: 408650
archrelease: copy trunk to community-any
Added:
python-testing.postgresql/repos/community-any/
python-testing.postgresql/repos/community-any/PKGBUILD
(from rev 408649, python-testing.postgresql/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-testing.postgresql/repos/community-any/PKGBUILD (from rev 408649, python-testing.postgresql/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2018-11-18 07:36:47 UTC (rev 408650)
@@ -0,0 +1,38 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+
+pkgname=python-testing.postgresql
+pkgver=1.3.0
+pkgrel=1
+pkgdesc='Helpers for using temporary PostgreSQL databases in tests'
+arch=(any)
+url='https://github.com/tk0miya/testing.postgresql'
+license=(Apache)
+makedepends=(python-setuptools)
+depends=(python-testing.common.database python-pg8000 postgresql)
+checkdepends=(python-nose python-psycopg2 python-sqlalchemy)
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/tk0miya/testing.postgresql/archive/$pkgver.tar.gz"
+ https://github.com/tk0miya/testing.postgresql/commit/738c8eb19a4b064dd74ff851c379dd1cbf11bc65.patch)
+sha256sums=('a8b41501f92103e2da0990ae72962375f6f1d092b0ac7e97a92f17ab8683bc20'
+ '3fac5ec62af8ec6a1a15c3e8f7c71597de4bd3e9496d632bbdd6ce0d9b8da56e')
+
+prepare() {
+ cd testing.postgresql-$pkgver
+
+ # fix tests
+ patch -Np1 -i ../738c8eb19a4b064dd74ff851c379dd1cbf11bc65.patch
+}
+
+build() {
+ cd testing.postgresql-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd testing.postgresql-$pkgver
+ nosetests -v
+}
+
+package() {
+ cd testing.postgresql-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list