aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-mongo/APKBUILD
blob: 0de2650188e5ae4f1c9248200234596784e3243a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Danilo Falc√£o <danilo@falcao.org>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-mongo
_pkgname=pymongo
pkgver=3.10.1
pkgrel=0
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 --prefix=/usr --root="$pkgdir"
}

sha512sums="5a73ac17ef6f6783a573facd90879dbefa0c95d69123bc67c1a6af0987cb5786f637b8fa81a6810387acc34829a4cde33b848ac0f7b08f7d07faa90a8e13b595  pymongo-3.10.1.tar.gz"