python3-isodate: update to 0.6.1, remove python-isodate.

python-isodate was only needed by python-rdflib.
This commit is contained in:
classabbyamp 2022-07-25 23:14:19 -04:00 committed by classabbyamp
parent 3b124b5116
commit 93cdeb2e4c
4 changed files with 25 additions and 32 deletions

View File

@ -1,30 +0,0 @@
# Template file for 'python-isodate'
pkgname=python-isodate
version=0.6.0
revision=5
wrksrc="isodate-${version}"
build_style=python-module
pycompile_module="isodate"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
short_desc="ISO 8601 date/time/duration parser and formatter (Python2)"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="https://github.com/gweis/isodate"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/i/isodate/isodate-${version}.tar.gz"
checksum=2e364a3d5759479cdb2d37cce6b9376ea504db2ff90252a2e5b7cc89cc9ff2d8
post_install() {
sed -n '/Copyright/,/CONTRACT/p' src/isodate/__init__.py >LICENSE
vlicense LICENSE
}
python3-isodate_package() {
depends="python3-six"
pycompile_module="isodate"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}

View File

@ -1 +0,0 @@
python-isodate

View File

@ -0,0 +1,23 @@
# Template file for 'python3-isodate'
pkgname=python3-isodate
version=0.6.1
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-six"
checkdepends="${depends}"
short_desc="ISO 8601 date/time/duration parser and formatter (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/gweis/isodate"
distfiles="${PYPI_SITE}/i/isodate/isodate-${version}.tar.gz"
checksum=48c5881de7e8b0a0d648cb024c8062dc84e7b840ed81e864c7614fd3c127bde9
post_install() {
# licence is in a separate file at HEAD of master, but not released
sed -n '/Copyright/,/CONTRACT/p' src/isodate/__init__.py >LICENSE
vlicense LICENSE
# remove tests from installed package
rm -r ${DESTDIR}/${py3_sitelib}/${pkgname#*-}/tests
}

View File

@ -1,7 +1,7 @@
# Template file for 'removed-packages'
pkgname=removed-packages
version=0.1
revision=70
revision=71
build_style=meta
short_desc="Uninstalls packages removed from repository"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
@ -303,6 +303,7 @@ replaces="
python-gntp<=1.0.3_7
python-gobject-devel<=3.36.1_2
python-gobject<=3.36.1_2
python-isodate<=0.6.0_5
python-iso8601<=0.1.16_2
python-jellyfish<=0.6.1_2
python-lockfile<=0.12.2_7