summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb69da64cd0f64a7f17106166a3c9b863f3f2cb5 (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
29
30
31
# Maintainer: Adrián Pérez de Castro <aperez@igalia.com>
_tarname='Delorean'
pkgname=python-delorean
pkgdesc='Library providing a more convenient use of datetimes'
pkgver=1.0.0
pkgrel=2
url=http://delorean.readthedocs.org/
license=(custom:MIT)
arch=(any)
depends=(python-pytz python-dateutil python-humanize python-tzlocal python-babel)
makedepends=(python-build python-installer python-wheel)
checkdepends=(python-nose python-mock)
source=("https://pypi.python.org/packages/source/D/Delorean/${_tarname}-${pkgver}.tar.gz")
sha512sums=('7514145d0084d8f0697b7ae078e35087b64d723ef6d20b105a72bf84a5f122eb69693aec59c7d574a1b57f114ba4269f31931bdfc54cfeac32a98add9eec05e3')

build () {
	cd "${_tarname}-${pkgver}"
	python -m build --wheel --no-isolation
}

check () {
	cd "${_tarname}-${pkgver}"
	nosetests -v
}

package () {
	cd "${_tarname}-${pkgver}"
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 LICENSE.txt \
		"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}