# Template file for 'python-atomicwrites'
pkgname=python-atomicwrites
version=1.2.1
revision=1
noarch=yes
wrksrc="atomicwrites-${version}"
build_style=python-module
pycompile_module="atomicwrites"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Simple Python2 API for atomic file writes"
maintainer="Oliver Kiddle <okiddle@yahoo.co.uk>"
license="MIT"
homepage="https://github.com/untitaker/python-atomicwrites"
distfiles="${PYPI_SITE}/a/atomicwrites/atomicwrites-${version}.tar.gz"
checksum=ec9ae8adaae229e4f8446952d204a3e4b5fdd2d099f9be3aaf556120135fb3ee

post_install() {
	vlicense LICENSE
}

python3-atomicwrites_package() {
	noarch=yes
	pycompile_module="atomicwrites"
	depends="python3"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
