summaryrefslogtreecommitdiff
path: root/user/py3-atomicwrites
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-10-11 01:43:33 -0400
committerMax Rees <maxcrees@me.com>2018-10-22 20:22:08 -0400
commitc8eb5d4d462a8e3635e41c927af84dab33fa9eca (patch)
tree62cb961bf6921d055985fa963638a0be15cf9e53 /user/py3-atomicwrites
parentd21fad983397063b5336e40726cf10099e1459ef (diff)
downloadpackages-c8eb5d4d462a8e3635e41c927af84dab33fa9eca.tar.gz
packages-c8eb5d4d462a8e3635e41c927af84dab33fa9eca.tar.bz2
packages-c8eb5d4d462a8e3635e41c927af84dab33fa9eca.tar.xz
packages-c8eb5d4d462a8e3635e41c927af84dab33fa9eca.zip
user/py3-atomicwrites: new package
Diffstat (limited to 'user/py3-atomicwrites')
-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"