aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pyrfc3339/APKBUILD
blob: e0b271a16376382434d6e918e769cf9cf092d1d3 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=py3-pyrfc3339
_pkgname=pyRFC3339
pkgver=1.1
pkgrel=3
pkgdesc="Generate and parse RFC 3339 timestamps"
url="https://pypi.python.org/pypi/pyRFC3339"
arch="noarch"
license="MIT"
depends="py3-tz"
makedepends="py3-setuptools"
checkdepends="py3-nose"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-rfc3339 # Backwards compatibility
provides=py-rfc3339=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="958b7761fab590aa42bb57a955c5d834441f717796a452b60df21663099dcf2fc046afe60f8157fd0f1edfd95c5e9c9c5349ab10ca4078d210fc63d848496a2f  pyRFC3339-1.1.tar.gz"