python-pytz: remove package

This commit is contained in:
classabbyamp 2022-03-05 14:42:42 -05:00 committed by Echo
parent 6022b6b5a0
commit 91fe463b14
4 changed files with 23 additions and 39 deletions
srcpkgs
python-pytz
python3-pytz
removed-packages

View file

@ -1,38 +0,0 @@
# Template file for 'python-pytz'
pkgname=python-pytz
version=2021.3
revision=2
wrksrc="pytz-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python tzdata"
checkdepends="python-pytest python3-pytest"
short_desc="Python2 timezone library"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://pythonhosted.org/pytz/"
distfiles="${PYPI_SITE}/p/pytz/pytz-${version}.tar.gz"
checksum=acad2d8b20a1af07d4e4c9d2e9285c5ed9104354062f275f3fcd88dcef4f1326
do_check() {
PYTHONPATH=build-2.7/lib python2 -m pytest
PYTHONPATh=build-${py3_ver}/lib python3 -m pytest
}
post_install() {
# use system tz database
for py_sitelib in $py2_sitelib $py3_sitelib; do
rm -rf ${DESTDIR}/${py_sitelib}/pytz/zoneinfo
ln -sf /usr/share/zoneinfo ${DESTDIR}/${py_sitelib}/pytz/zoneinfo
done
vlicense LICENSE.txt LICENSE
}
python3-pytz_package() {
depends="python3 tzdata"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}

View file

@ -1 +0,0 @@
python-pytz

View file

@ -0,0 +1,22 @@
# Template file for 'python3-pytz'
pkgname=python3-pytz
version=2021.3
revision=2
wrksrc="pytz-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3 tzdata"
checkdepends="python3-pytest"
short_desc="Python3 timezone library"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://pythonhosted.org/pytz/"
distfiles="${PYPI_SITE}/p/pytz/pytz-${version}.tar.gz"
checksum=acad2d8b20a1af07d4e4c9d2e9285c5ed9104354062f275f3fcd88dcef4f1326
post_install() {
# use system tz database
rm -rf ${DESTDIR}/${py3_sitelib}/pytz/zoneinfo
ln -sf /usr/share/zoneinfo ${DESTDIR}/${py3_sitelib}/pytz/zoneinfo
vlicense LICENSE.txt LICENSE
}

View file

@ -290,6 +290,7 @@ replaces="
python-pyenet<=1.3.13.post7_2
python-pyside<=1.2.2_7
python-pytest-relaxed<=1.1.2_2
python-pytz<=2021.3_2
python-reportlab<=3.5.42_3
python-requests<=2.26.0_2
python-spambayes<=1.1b3_3