summaryrefslogtreecommitdiff
path: root/community/py3-portalocker/APKBUILD
blob: c58daaa1a37d2df0b638f4ccaa21cf56f1d8376b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-portalocker
pkgver=2.6.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-sphinx
	"
checkdepends="
	py3-docutils
	py3-pytest
	py3-pytest-cov
	"
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"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0c8daf0aec035bca2eee3f0f3853cd02a24841dd8ab319d38e98de39378f0b252de24984f452e5bbcb13178a9929717b7c23c04a1d8bb3d1f5e2b082cc4658b0  portalocker-2.6.0.tar.gz
"