aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-hijri-converter/APKBUILD
blob: 8a8bdc728901fe24bdf01093f9cc8d661c754337 (plain)
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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-hijri-converter
pkgver=2.1.0
pkgrel=1
pkgdesc="Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar"
url="https://github.com/dralshehri/hijri-converter"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/dralshehri/hijri-converter/archive/v$pkgver/hijri-converter-v$pkgver.tar.gz"
builddir="$srcdir/hijri-converter-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

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

sha512sums="ced1ad7ac6e552ef59bad3bea5a5f83b81d2b18138f9f5ebb1b5b2a54ab3a3eaf6827c32c7ffe97eed455b927315b093c8c78b6a8ec08bbfda4a6f5fee7b530b  hijri-converter-v2.1.0.tar.gz"