diff --git a/srcpkgs/python-tempora/template b/srcpkgs/python-tempora/template deleted file mode 100644 index 194dc2718e5..00000000000 --- a/srcpkgs/python-tempora/template +++ /dev/null @@ -1,38 +0,0 @@ -# Template file for 'python-tempora' -pkgname=python-tempora -version=2.0.0 -revision=1 -archs=noarch -wrksrc="tempora-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-setuptools python-six python-pytz" -short_desc="Objects and routines pertaining to date and time (Python2)" -maintainer="Orphaned " -license="MIT" -homepage="https://github.com/jaraco/tempora" -distfiles="${PYPI_SITE}/t/tempora/tempora-${version}.tar.gz" -checksum=f11df59b34b9a87d395cce031274f6ff3d2be2171dd1db32dff9ab1fcb5352fa -alternatives="tempora:calc-prorate:/usr/bin/calc-prorate2" - -pre_build() { - vsed -i setup.py \ - -e '/setuptools_scm/d' \ - -e "s|use_scm_version=True|version='${version}'|" -} - -post_install() { - vlicense LICENSE -} - -python3-tempora_package() { - archs=noarch - depends="python3-setuptools python3-six python3-pytz" - alternatives="tempora:calc-prorate:/usr/bin/calc-prorate3" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/bin/*3 - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-tempora b/srcpkgs/python3-tempora deleted file mode 120000 index 3b48506309a..00000000000 --- a/srcpkgs/python3-tempora +++ /dev/null @@ -1 +0,0 @@ -python-tempora \ No newline at end of file diff --git a/srcpkgs/python3-tempora/template b/srcpkgs/python3-tempora/template new file mode 100644 index 00000000000..8a54b3f3c85 --- /dev/null +++ b/srcpkgs/python3-tempora/template @@ -0,0 +1,25 @@ +# Template file for 'python3-tempora' +pkgname=python3-tempora +version=2.0.0 +revision=2 +wrksrc="tempora-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-setuptools python3-six python3-pytz" +short_desc="Objects and routines pertaining to date and time (Python3)" +maintainer="Orphaned " +license="MIT" +homepage="https://github.com/jaraco/tempora" +distfiles="${PYPI_SITE}/t/tempora/tempora-${version}.tar.gz" +checksum=f11df59b34b9a87d395cce031274f6ff3d2be2171dd1db32dff9ab1fcb5352fa +conflicts="python-tempora>=0" + +pre_build() { + vsed -i setup.py \ + -e '/setuptools_scm/d' \ + -e "s|use_scm_version=True|version='${version}'|" +} + +post_install() { + vlicense LICENSE +}