ayaports/user/py3-dateparser/APKBUILD

32 lines
1.1 KiB
Text
Raw Normal View History

2023-01-10 19:12:28 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
2021-11-30 21:44:44 +00:00
2023-01-10 19:12:28 +00:00
_pyname="dateparser"
2021-11-30 21:44:44 +00:00
pkgname="py3-$_pyname"
pkgver=1.1.1
2023-01-10 19:12:28 +00:00
pkgrel=0
arch="noarch"
pkgdesc="Python parser for human readable dates"
url="https://pypi.python.org/project/$_pyname"
license="BSD-3-Clause"
2021-11-30 21:44:44 +00:00
depends='python3 py3-dateutil py3-regex py3-tz py3-ruamel-yaml'
2023-01-10 19:12:28 +00:00
makedepends="py3-setuptools"
options="!check" # No testsuite
source="
2023-01-10 19:12:28 +00:00
$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() {
2023-01-10 19:12:28 +00:00
python3 setup.py build
2021-11-30 21:44:44 +00:00
}
package() {
2023-01-10 19:12:28 +00:00
python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
2021-11-30 21:44:44 +00:00
}
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
"