Skip to content
Snippets Groups Projects
Commit c8eb5d4d authored by Max Rees's avatar Max Rees
Browse files

user/py3-atomicwrites: new package

parent d21fad98
No related branches found
No related tags found
1 merge request!97Update some Python packages and drop py3-tox rdeps where unnecessary
# 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment