ayaports/user/py3-dateparser/APKBUILD

37 lines
1.1 KiB
Text
Raw Normal View History

2021-11-30 21:44:44 +00:00
# Maintainer: Antoine Martin <dev@ayakael.net>
_pyname='dateparser'
pkgname="py3-$_pyname"
pkgver=1.1.1
pkgrel=1
2021-11-30 21:44:44 +00:00
arch='noarch'
pkgdesc='Python parser for human readable dates'
url="https://pypi.python.org/project/${_pyname}"
license="BSD"
depends='python3 py3-dateutil py3-regex py3-tz py3-ruamel-yaml'
makedepends='py3-setuptools'
options="!check"
source="
${pkgname}-${pkgver}.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-${pkgver}.tar.gz
0001-fix-for-parsing-error-due-to-regex-version.patch
"
2021-11-30 21:44:44 +00:00
builddir="$srcdir"/$_pyname-$pkgver
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="
2ef25877616ce6e0aaa4ede53b4c27e848a63e5237b6e4095071b1a4eb5e0162e25f0be6a96697a11628753b798c9dfeff5d098889bf409678f51a3f4446d944 py3-dateparser-1.1.1.tar.gz
9f6234c729c6464ee4020288b0695d13dbc2c78d531711d3b36901164c104183f2a293649c4f1312122c7fa29e653720c533b3dabb55a517153f399b00cee8f5 0001-fix-for-parsing-error-due-to-regex-version.patch
2021-11-30 21:44:44 +00:00
"