From 93cdeb2e4c036b85828b41357cc3811522399b1d Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 25 Jul 2022 23:14:19 -0400 Subject: [PATCH] python3-isodate: update to 0.6.1, remove python-isodate. python-isodate was only needed by python-rdflib. --- srcpkgs/python-isodate/template | 30 ------------------------------ srcpkgs/python3-isodate | 1 - srcpkgs/python3-isodate/template | 23 +++++++++++++++++++++++ srcpkgs/removed-packages/template | 3 ++- 4 files changed, 25 insertions(+), 32 deletions(-) delete mode 100644 srcpkgs/python-isodate/template delete mode 120000 srcpkgs/python3-isodate create mode 100644 srcpkgs/python3-isodate/template diff --git a/srcpkgs/python-isodate/template b/srcpkgs/python-isodate/template deleted file mode 100644 index 430cb3cfbe1..00000000000 --- a/srcpkgs/python-isodate/template +++ /dev/null @@ -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 " -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 - } -} diff --git a/srcpkgs/python3-isodate b/srcpkgs/python3-isodate deleted file mode 120000 index e821ac8eb64..00000000000 --- a/srcpkgs/python3-isodate +++ /dev/null @@ -1 +0,0 @@ -python-isodate \ No newline at end of file diff --git a/srcpkgs/python3-isodate/template b/srcpkgs/python3-isodate/template new file mode 100644 index 00000000000..29f2160953f --- /dev/null +++ b/srcpkgs/python3-isodate/template @@ -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 " +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 +} diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index 1dd47a33213..bd079be17ae 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -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 " @@ -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