mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
34 lines
No EOL
1 KiB
Text
34 lines
No EOL
1 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-platformdirs
|
|
pkgver=3.1.1
|
|
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="
|
|
537557370a05f78279c88cdda4b5abfbe1d2e6d91d69c4dd4049c6b1a8ac3e44a830d787e2b86af85c346e0244a6ba26233db061d7c8d0a3fbd141962609930d platformdirs-3.1.1.tar.gz
|
|
" |