1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/testing/py3-mongo/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

32 lines
902 B
Text

# Contributor: Danilo Falcão <danilo@falcao.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-mongo
_pkgname=pymongo
pkgver=3.12.1
pkgrel=2
pkgdesc="Python3 driver for MongoDB"
url="https://github.com/mongodb/mongo-python-driver"
arch="all"
license="Apache-2.0"
makedepends="python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-mongo" # Backwards compatibility
provides="py-mongo=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
36294f9437c91e5ea744452e0dc1049be65706dced61a296dfae09d32e31aae0276da2bb059a5548569e6cde62f66b935f2a422f297a3eabf0b928cfee07d060 pymongo-3.12.1.tar.gz
"