# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=py3-atomicwrites _pkgname=python-atomicwrites pkgver=1.3.0 pkgrel=2 pkgdesc="Powerful Python3 library for atomic file writes" url="https://github.com/untitaker/python-atomicwrites" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools" options="!check" # requires pytest which depends on this aport (cyclic dep) source="https://github.com/untitaker/python-atomicwrites/archive/$pkgver/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-atomicwrites" # Backwards compatibility provides="py-atomicwrites=$pkgver-r$pkgrel" # Backwards compatibility build() { cd "$builddir" python3 setup.py build } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="7a257286ba35d6f0db3772ef9666283f29c36719fe35eeb1cb9c36341f0f6a0d7c316d236927ef031f2b8ac6c245320481f51c59e0e1ccf2cbea49065a13d474 python-atomicwrites-1.3.0.tar.gz"