aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-influxdb/APKBUILD
blob: 103ef0da75b2aa78b7717a2103cb808d03f82d2f (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
31
32
33
# Contributor: Olivier Mauras <olivier@mauras.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-influxdb
_pkgname=influxdb-python
pkgver=5.2.3
pkgrel=0
pkgdesc="Python bindings for InfluxDB"
options="!check" # Requires unpackaged nose-cov
url="https://github.com/influxdata/influxdb-python"
arch="noarch"
license="MIT"
depends="python3 py3-tz py3-six py3-requests py3-dateutil"
makedepends="py3-setuptools"
checkdepends="py3-nose"
source="$pkgname-$pkgver.tar.gz::https://github.com/influxdata/influxdb-python/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-influxdb" # Backwards compatibility
provides="py-influxdb=$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="49d70e6293883bad16db5d7d72e02988562311a070f8aca6c82880dea7f40b1c411d5882bc9e224934341a5180bc1fcb0987363cdf0e2ffe9e7f1c615e9588f8  py3-influxdb-5.2.3.tar.gz"