summaryrefslogtreecommitdiff
path: root/community/py3-udev/APKBUILD
blob: 967b60b1f4e12d02963dfca9f4a556efd72d1981 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-udev
pkgver=0.24.0
pkgrel=1
pkgdesc="Python bindings to libudev"
options="!check" # tries to use pytest_namespace
url="http://pyudev.readthedocs.org"
arch="noarch"
license="LGPL-2.1-or-later"
depends="eudev python3"
makedepends="py3-setuptools"
checkdepends="py3-docutils py3-pytest py3-mock py3-hypothesis"
source="py-udev-$pkgver.tar.gz::https://github.com/pyudev/pyudev/archive/v$pkgver.tar.gz"
builddir="$srcdir/pyudev-$pkgver"

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

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
fe6fec9bbc402bbcf6458b6c3ea2db43ac3ac03bba3c74193dde46253b532d1c9d55ad78e4bc8fa0ff660bf0e371f07ef60c6c4a6251b0dd64acbb129f63507e  py-udev-0.24.0.tar.gz
"