32 lines
838 B
Bash
32 lines
838 B
Bash
# Template file for 'python-atomicwrites'
|
|
pkgname=python-atomicwrites
|
|
version=1.2.0
|
|
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=e16334d50fe0f90919ef7339c24b9b62e6abaa78cd2d226f3d94eb067eb89043
|
|
|
|
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
|
|
}
|
|
}
|