summaryrefslogtreecommitdiff
path: root/main/py3-filelock/APKBUILD
blob: c1b771785b09ceb4aec538d0a280c272ccc0ff05 (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
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
pkgname=py3-filelock
_pkgname=filelock
pkgver=3.8.0
pkgrel=1
pkgdesc="A platform independent file lock for Python3"
url="https://github.com/tox-dev/py-filelock"
arch="noarch"
license="Unlicense"
depends="python3"
checkdepends="py3-pytest py3-pytest-timeout"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/f/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-filelock" # Backwards compatibility
provides="py-filelock=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare
	sed -i "/\[metadata\]/a version = $pkgver" setup.cfg
}

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD"/src python3 -m pytest -xvv ./tests/test_filelock.py
}

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

sha512sums="
95fb4d420a316199a658e20f385d5eec9db9398a78803cad581f73efb136d2935308a04b1bcf6cebd71a8601f72d006a491937664ec0b70904c305c5796a4bf1  filelock-3.8.0.tar.gz
"