mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
# Contributor: Danilo Falcão <danilo@falcao.org>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-mongo
|
|
_pkgname=pymongo
|
|
pkgver=4.3.3
|
|
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="
|
|
f39b973b89495ca3bb9c0041ab750a6d31ac0d013e9a3eda63c32a6db17f8d46a24fd97456840274af1720d3ac2e05e137530d96b1f9a02feb89659cda821d61 pymongo-4.3.3.tar.gz
|
|
"
|