summaryrefslogtreecommitdiff
path: root/main/py3-atomicwrites/APKBUILD
blob: 39168eb2525cfd5672d7c7ea24021ee1fb488f0f (plain)
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
31
32
33
34
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-atomicwrites
_pkgname=python-atomicwrites
pkgver=1.4.1
pkgrel=0
pkgdesc="Powerful Python3 library for atomic file writes"
url="https://github.com/untitaker/python-atomicwrites"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
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 --prefix=/usr --root="$pkgdir"
}

sha512sums="
5090f6d971a2af6dcbf73c2331438358d77c7a47edf4962f5202fbe13a75813541a2de0a28b241b798bed48fe3353e2f5cf1bb641ca3fba8600d8da9063b025c  python-atomicwrites-1.4.1.tar.gz
"