user/py3-pytz: present in official aports

This commit is contained in:
build@apk-groulx 2022-07-31 15:34:11 +00:00
parent 525eb69826
commit f11d8d20c7
2 changed files with 4 additions and 38 deletions

View file

@ -3,7 +3,7 @@
_pyname=django-q
pkgname="py3-$_pyname"
pkgver=1.3.9
pkgrel=0
pkgrel=1
arch='noarch'
pkgdesc='A multiprocessing distributed task queue for Django'
url="https://pypi.python.org/project/$_pyname"
@ -30,17 +30,12 @@ source="${pkgname}-${pkgver}.tar.gz::https://pypi.io/packages/source/${_pyname:0
builddir="$srcdir"/$_pyname-$pkgver
build() {
cd "$builddir"
poetry build --format wheel
poetry build --format wheel
}
package() {
cd "$builddir"
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
cp django_q -R "$pkgdir"/usr/lib/python*/site-packages/.
}
sha512sums="

View file

@ -1,29 +0,0 @@
# Maintainer: Antoine Martin <dev@ayakael.net>
pkgname='py3-pytz'
pkgver=2020.5
pkgrel=0
arch='noarch'
pkgdesc="Cross platform time zone library for Python"
url="https://pypi.python.org/pypi/pytz"
license="MIT"
depends=python3
makedepends=python3
source="${pkgname}-${pkgver}.tar.gz::https://pypi.io/packages/source/p/pytz/pytz-${pkgver}.tar.gz"
check(){
cd $srcdir/pytz-$pkgver/pytz/tests
python3 test_tzinfo.py
}
package() {
cd $srcdir/pytz-$pkgver
python3 setup.py install --root=$pkgdir/
install -Dm644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
sha512sums="0845c0b7cefb8732e3016568b17ae73232fe6537bac6da89cb1bf911ba5786ee1be6b5e3aa8767225291e3a7e9afd5b8e40e4051671a3a006f9e2f71c551e13e py3-pytz-2020.5.tar.gz"