void-packages/srcpkgs/python-atomicwrites/template

32 lines
842 B
Bash

# Template file for 'python-atomicwrites'
pkgname=python-atomicwrites
version=1.3.0
revision=2
archs=noarch
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=75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6
post_install() {
vlicense LICENSE
}
python3-atomicwrites_package() {
archs=noarch
pycompile_module="atomicwrites"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}