# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=py3-atomicwrites _pkgname=python-atomicwrites pkgver=1.4.1 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" subpackages="$pkgname-pyc" 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() { python3 setup.py build } check() { # proper tests require pytest which depends on this aport (cyclic dep) PYTHONPATH=build/lib python3 -c "from atomicwrites import atomic_write" } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 5090f6d971a2af6dcbf73c2331438358d77c7a47edf4962f5202fbe13a75813541a2de0a28b241b798bed48fe3353e2f5cf1bb641ca3fba8600d8da9063b025c python-atomicwrites-1.4.1.tar.gz "