summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
Diffstat (limited to 'user')
-rw-r--r--user/py3-atomicwrites/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/py3-atomicwrites/APKBUILD b/user/py3-atomicwrites/APKBUILD
new file mode 100644
index 000000000..06dc535c1
--- /dev/null
+++ b/user/py3-atomicwrites/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Max Rees <maxcrees@me.com>
+pkgname=py3-atomicwrites
+_pkgname=atomicwrites
+pkgver=1.2.1
+pkgrel=0
+pkgdesc="Powerful Python library for atomic file writes"
+url="https://pypi.org/project/atomicwrites/"
+arch="noarch"
+options="!check" # Cyclic dependency with py3-pytest. Passes on x86_64
+# Certified net clean
+license="MIT"
+depends="python3"
+makedepends="python3-dev"
+#checkdepends="py3-pytest"
+source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/a/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ PYTHONPATH="$builddir/build/lib:$PYTHONPATH" pytest
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="4df7ee97e0817a80378b273ced310b8ad88eb6ced93a594a6e3dc38ad1e7208226fde01b6d282f85583c57a50859e82c85bacaae8a7c64fce55e6965f74b12c5 py3-atomicwrites-1.2.1.tar.gz"