55 lines
1.2 KiB
Text
55 lines
1.2 KiB
Text
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
||
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||
|
pkgname=py3-portalocker
|
||
|
pkgver=2.7.0
|
||
|
pkgrel=0
|
||
|
pkgdesc="An extended version of portalocker to lock files in Python using the with statement"
|
||
|
url="http://portalocker.readthedocs.io/en/latest/"
|
||
|
arch="noarch"
|
||
|
license="PSF-2.0"
|
||
|
depends="
|
||
|
py3-babel
|
||
|
py3-imagesize
|
||
|
py3-requests
|
||
|
py3-snowballstemmer
|
||
|
python3
|
||
|
"
|
||
|
makedepends="
|
||
|
py3-setuptools
|
||
|
py3-gpep517
|
||
|
py3-installer
|
||
|
py3-wheel
|
||
|
py3-sphinx
|
||
|
"
|
||
|
checkdepends="
|
||
|
py3-docutils
|
||
|
py3-pytest
|
||
|
py3-pytest-cov
|
||
|
"
|
||
|
subpackages="$pkgname-pyc"
|
||
|
source="https://pypi.python.org/packages/source/p/portalocker/portalocker-$pkgver.tar.gz"
|
||
|
# Tests requires deprecated Python package pytest-flakes and pytest-pep8
|
||
|
options="!check"
|
||
|
builddir="$srcdir/portalocker-$pkgver"
|
||
|
subpackages="$pkgname-pyc"
|
||
|
|
||
|
build() {
|
||
|
gpep517 build-wheel \
|
||
|
--wheel-dir dist \
|
||
|
--output-fd 3 3>&1 >&2
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
pytest -v
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
python3 -m installer -d "$pkgdir" \
|
||
|
dist/*.whl
|
||
|
}
|
||
|
|
||
|
sha512sums="
|
||
|
9f6dc31fda36f2fcc7088134b5249c6ec4a92a1fa2e85bf55c700469f183d29ed1a1bd522b65909844c85dfe6872d83809d21b78dc89886533db2692cc709ed2 portalocker-2.7.0.tar.gz
|
||
|
"
|