mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=py3-udev
|
|
pkgver=0.21.0
|
|
pkgrel=4
|
|
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 py3-six"
|
|
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
|
|
pytest.patch
|
|
"
|
|
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 --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="c6cc8786c69de2a07eeae39cb57e33db6ca5fea83c38fdab277070bf052c97bd053911ab08a11fe65cb56c463492111e74451801390d89dc7f00fd00e68bba19 py-udev-0.21.0.tar.gz
|
|
4275228caa5a079b0a9db77efab4ccd5c817c85c7cfdf65f10b793085e8636d17616be55225ecf87de1018c350722adcd642ebd811feaf6a09445d200d17f892 pytest.patch"
|