mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-16 10:06:24 +02:00
45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
maintainer="Achill Gilgenast <achill@achill.org>"
|
|
pkgname=setools
|
|
pkgver=4.6.0
|
|
pkgrel=0
|
|
pkgdesc="SELinux Policy Analysis Tools"
|
|
url="https://github.com/SELinuxProject/setools"
|
|
arch="all"
|
|
license="LGPL-2.1-only"
|
|
makedepends="
|
|
cython
|
|
libselinux-dev
|
|
libsepol-dev
|
|
linux-headers
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="py3-pytest py3-pytest-qt"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
source="https://github.com/SELinuxProject/setools/releases/download/$pkgver/setools-$pkgver.tar.bz2"
|
|
builddir="$srcdir/setools"
|
|
options="!check" # needs PYTHONPATH handleing
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2b4b35c2b843de5a4867f9b209b9f69a0c9da4f5c49df38c8056b27790e7198ff373ad6e592ae620b031c3a24e471dbef20d0cdb9c044c6b2db644313a9bab91 setools-4.6.0.tar.bz2
|
|
"
|