From c8eb5d4d462a8e3635e41c927af84dab33fa9eca Mon Sep 17 00:00:00 2001 From: Max Rees Date: Thu, 11 Oct 2018 01:43:33 -0400 Subject: user/py3-atomicwrites: new package --- user/py3-atomicwrites/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 user/py3-atomicwrites/APKBUILD (limited to 'user/py3-atomicwrites') 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 +# Maintainer: Max Rees +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" -- cgit v1.2.3-70-g09d2