[arch-commits] Commit in python-pymongo/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 16:33:47 UTC 2019
Date: Friday, October 25, 2019 @ 16:33:47
Author: foutrelis
Revision: 519466
archrelease: copy trunk to community-staging-x86_64
Added:
python-pymongo/repos/community-staging-x86_64/
python-pymongo/repos/community-staging-x86_64/PKGBUILD
(from rev 519465, python-pymongo/trunk/PKGBUILD)
----------+
PKGBUILD | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
Copied: python-pymongo/repos/community-staging-x86_64/PKGBUILD (from rev 519465, python-pymongo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-25 16:33:47 UTC (rev 519466)
@@ -0,0 +1,57 @@
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+
+pkgbase=python-pymongo
+pkgname=('python-pymongo' 'python2-pymongo')
+pkgver=3.9.0
+pkgrel=2
+pkgdesc='Python module for using MongoDB'
+arch=('x86_64')
+license=('APACHE')
+url='https://pypi.python.org/pypi/pymongo/'
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose' 'python2-gevent' 'python2-monotonic' 'pifpaf')
+checkdepends_x86_64=('mongodb')
+source=("https://pypi.io/packages/source/p/pymongo/pymongo-$pkgver.tar.gz")
+sha512sums=('3ac8831ffd82c27bfbf8429a38fe26aed177ba68b89d0ddf043adfde326b8c01eea9be449bb985421f42677fab4dd5ab44e1c1c9eeb3aff41d792c660fe23e0b')
+
+prepare() {
+ cp -a "pymongo-$pkgver" "pymongo2-$pkgver"
+}
+
+build() {
+ cd "$srcdir"/pymongo-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pymongo2-$pkgver
+ python2 setup.py build
+}
+
+check_x86_64() {
+ export DB_PORT=29000
+
+ cd "$srcdir"/pymongo-$pkgver
+ pifpaf run mongodb python setup.py test
+
+ cd "$srcdir"/pymongo2-$pkgver
+ pifpaf run mongodb python2 setup.py test
+}
+
+package_python2-pymongo() {
+ depends=('python2')
+ optdepends=('python2-monotonic: enable support for a monotonic clock')
+
+ cd "pymongo2-$pkgver"
+ python2 setup.py install --root="$pkgdir" --skip-build --optimize=1
+}
+
+package_python-pymongo() {
+ depends=('python')
+
+ cd "pymongo-$pkgver"
+ python setup.py install --root="$pkgdir" --skip-build --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list