diff --git a/srcpkgs/python-iso-8601/template b/srcpkgs/python-iso-8601/template new file mode 100644 index 00000000000..a483e55b0bd --- /dev/null +++ b/srcpkgs/python-iso-8601/template @@ -0,0 +1,30 @@ +# Template file for 'python-iso-8601' +pkgname=python-iso-8601 +version=0.3.0 +revision=1 +archs=noarch +wrksrc="iso-8601-${version}" +build_style=python-module +pycompile_module="iso8601" +hostmakedepends="python-setuptools python3-setuptools" +depends="python" +short_desc="Python2 library that provides cryptographic recipes and primitives" +maintainer="Piotr Wójcik " +license="BSD-2-Clause" +homepage="https://pypi.org/project/iso-8601/" +distfiles="${PYPI_SITE}/i/iso-8601/iso-8601-${version}.tar.gz" +checksum=1b9f74df591812732b69a1cfba5196e176138bf5b0b49a920af5804924cc27e0 + +post_install() { + vlicense PKG-INFO +} + +python3-iso-8601_package() { + depends="python3" + pycompile_module="iso8601" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense PKG-INFO + } +} diff --git a/srcpkgs/python3-iso-8601 b/srcpkgs/python3-iso-8601 new file mode 120000 index 00000000000..e44531aa04c --- /dev/null +++ b/srcpkgs/python3-iso-8601 @@ -0,0 +1 @@ +python-iso-8601 \ No newline at end of file