# Contributor: Danilo Falcão # Maintainer: Fabian Affolter pkgname=py3-mongo _pkgname=pymongo pkgver=4.4.1 pkgrel=0 pkgdesc="Python3 driver for MongoDB" url="https://github.com/mongodb/mongo-python-driver" arch="all" license="Apache-2.0" depends="py3-dnspython" makedepends=" py3-gpep517 py3-setuptools py3-wheel python3-dev " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver # tests # no mockupdb options="!check net" replaces="py-mongo" # Backwards compatibility provides="py-mongo=$pkgver-r$pkgrel" # Backwards compatibility build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 0acde06319e9b629bc36e7fa1074516f9e5e7cc9bd46a8aeb334d887b3c36b2c10c8c9596d243ce09301363f0154fc7de0c885e53da6229cc134b4dbc456e5d1 pymongo-4.4.1.tar.gz "