From eab6a228f8867e0d914d39080a49d3703e7360b2 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 30 Aug 2023 13:32:49 -0400 Subject: [PATCH] backports/py3-dateparser: move from user --- backports/py3-dateparser/APKBUILD | 28 ++++++++++++++++++++++++++++ user/py3-dateparser/APKBUILD | 27 --------------------------- 2 files changed, 28 insertions(+), 27 deletions(-) create mode 100644 backports/py3-dateparser/APKBUILD delete mode 100644 user/py3-dateparser/APKBUILD diff --git a/backports/py3-dateparser/APKBUILD b/backports/py3-dateparser/APKBUILD new file mode 100644 index 0000000..99c4bf3 --- /dev/null +++ b/backports/py3-dateparser/APKBUILD @@ -0,0 +1,28 @@ +# Maintainer: Hoang Nguyen +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 +" diff --git a/user/py3-dateparser/APKBUILD b/user/py3-dateparser/APKBUILD deleted file mode 100644 index c40deff..0000000 --- a/user/py3-dateparser/APKBUILD +++ /dev/null @@ -1,27 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -_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 -"