ayaports/user/py3-dateparser/APKBUILD

27 lines
885 B
Text

# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname="dateparser"
pkgname="py3-$_pyname"
pkgver=1.1.8
pkgrel=0
arch="noarch"
pkgdesc="Python parser for human readable dates"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-Clause"
depends='python3 py3-dateutil py3-regex py3-tz py3-ruamel-yaml'
makedepends="py3-setuptools"
options="!check" # No testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
}
package() {
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
}
sha512sums="
45fc6ee67be77ae9ece818b25e680a9416c30bbe8d71746a2b08910b57406d65e6b9f0c51ada1697034ea1f3f9a0952c2f0616c9fa1be4c7886e459e1cc2d898 py3-dateparser-1.1.8.tar.gz
"