# Maintainer: Justin Kromlinger # Contributor: Stefan Husmann pkgname=python-dateparser pkgver=1.2.0 pkgrel=4 pkgdesc="python parser for human readable dates" url="https://github.com/scrapinghub/dateparser" arch=('any') license=('BSD-3-Clause') depends=( 'python-dateutil' 'python-regex' 'python-tzlocal' 'python-pytz' 'python-gitpython' ) optdepends=( 'python-langdetect' 'python-ruamel-yaml: for operations on language files' 'python-fasttext' # AUR 'python-convertdate: to convert Jalali dates to Gregorian' # AUR 'python-hijri-converter: to convert Hijri dates to Gregorian' # AUR ) makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') #checkdepends=( # 'python-pytest' # 'python-parameterized' # 'python-pymeeus' # AUR #) source=("${pkgname#python-}-${pkgver}.tar.gz::https://github.com/scrapinghub/dateparser/archive/v${pkgver}.tar.gz") sha256sums=('13f5b024978a2251043c9d5fa937fcf2120864b36765ab8825eab79f6313fe8c') build() { cd "${pkgname#python-}-${pkgver}" python -m build --wheel --no-isolation } # Currently: 2260 failed, 21272 passed, 14 skipped, 15 warnings in 253.79s (0:04:13) #check() { # cd "${pkgname#python-}-${pkgver}" # python -m pytest #} package() { cd "${pkgname#python-}-${pkgver}" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst" }