aports/testing/reprotest/APKBUILD

42 lines
1.2 KiB
Text

# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=reprotest
_pyname=reprotest
pkgver=0.7.29
pkgrel=0
pkgdesc="Build packages and check them for reproducibility"
url="https://salsa.debian.org/reproducible-builds/reprotest"
arch="noarch"
license="GPL-3.0-or-later"
depends="diffoscope py3-rstr py3-distro py3-setuptools"
makedepends="
py3-gpep517
py3-wheel
"
checkdepends="dpkg py3-pytest"
_pypiprefix="${_pyname%"${_pyname#?}"}"
subpackages="$pkgname-pyc"
source="https://salsa.debian.org/reproducible-builds/reprotest/-/archive/$pkgver/reprotest-$pkgver.tar.gz"
options="!check" # missing disorderfs
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="
cb5adf6e5952dd4ac15bc5c09e38341b9bb7d0057814353a7296526f5f573fb43ce0dfeb369f74fdcb9a0006d66135093d3ce568b313bad2710f4c41da532f9b reprotest-0.7.29.tar.gz
"