backports/py3-dateparser: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:32:49 -04:00
parent 0b3ee80df8
commit eab6a228f8
2 changed files with 28 additions and 27 deletions

View file

@ -0,0 +1,28 @@
# 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
"

View file

@ -1,27 +0,0 @@
# 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
"