aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-atomicwrites/APKBUILD
blob: ae40fc0bf83958f3134608cd582329aa165f8f8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
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"