# Maintainer: Natanael Copa pkgname=py3-udev pkgver=0.24.1 pkgrel=0 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" subpackages="$pkgname-pyc" 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=" 68d64113a465588411e494a010e1b19f68ed0f8fabff154d6f3066a22ff38fcd52ee73b9a00be15f5e51ea38152cd97f2ff3fda406981431a6d5a6fa0484e874 py-udev-0.24.1.tar.gz "