mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 03:35:38 +03:00
34 lines
1 KiB
Text
34 lines
1 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-platformdirs
|
|
pkgver=3.1.0
|
|
pkgrel=0
|
|
pkgdesc="Module for determining appropriate platform-specific dirs"
|
|
url="https://github.com/platformdirs/platformdirs"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-hatchling py3-hatch-vcs"
|
|
checkdepends="py3-appdirs py3-pytest py3-pytest-mock"
|
|
source="https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-$pkgver.tar.gz"
|
|
builddir="$srcdir/platformdirs-$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
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
5a9bf5add75d823be5858b8a74edc023e14f7c4cdf1ccb763c23e427b828734d3b3856fc1c684f467a6976929e949f9ab274dad1d19881dd114037b605ce5f27 platformdirs-3.1.0.tar.gz
|
|
"
|