1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 10:45:15 +03:00
aports/community/py3-udev/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

33 lines
932 B
Text

# 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
"