mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 00:34:41 +02:00
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-dill
|
|
_pyname=dill
|
|
pkgver=0.4.0
|
|
pkgrel=0
|
|
pkgdesc="Python serializer supporting a broader range of types than pickle"
|
|
url="https://pypi.org/project/dill/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
makedepends="python3 py3-gpep517 py3-setuptools py3-wheel"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/uqfoundation/dill/releases/download/$pkgver/dill-$pkgver.tar.gz"
|
|
builddir=$srcdir/$_pyname-$pkgver
|
|
|
|
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
|
|
export PYTHONPATH=build/lib
|
|
for t in dill/tests/test*.py; do
|
|
echo "$t"
|
|
.testenv/bin/python3 "$t"
|
|
done
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/dill/tests
|
|
}
|
|
|
|
sha512sums="
|
|
1289780e9326959a4d2488e5097b889f27212fba23d35d5c0db00337b952cde20786ecdbefa03a8b276f0cec8dba5b8ea118245e39e4fe8fd3209b5c920829e7 dill-0.4.0.tar.gz
|
|
"
|