ayaports/backports/py3-dateparser/APKBUILD

29 lines
899 B
Text
Raw Normal View History

# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=py3-dateparser
_pyname=${pkgname#py3-}
pkgver=1.1.8
pkgrel=1
pkgdesc="Python parser for human readable dates"
url="https://github.com/scrapinghub/dateparser"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-dateutil py3-regex py3-tz py3-tzlocal"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/scrapinghub/dateparser/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
# Requires py3-langdetect and py3-fasttext, which are not in the repository
options="!check"
build() {
python3 setup.py build
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
89761427ab0bd194f74d5458930dd3bc01cf654a535547b3bdde651c766d4222d1a9ddc0986c3659d1b2de3a200d6b7dccc227578efabdc208ff98d4f547323a py3-dateparser-1.1.8.tar.gz
"