mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
38 lines
839 B
Text
38 lines
839 B
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-path
|
|
pkgver=16.0.0
|
|
pkgrel=0
|
|
pkgdesc="Module wrapper for os.path"
|
|
url="https://github.com/jaraco/path"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="https://github.com/jaraco/path/archive/v$pkgver/path-v$pkgver.tar.gz"
|
|
builddir="$srcdir/path-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
sed -e '/setuptools_scm/d' \
|
|
-e "/^\[metadata\]/a version = $pkgver" \
|
|
-i setup.cfg
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
db0e400bb02980c21697ceb6eb7baaf0601c532d87b112f3962c36dc412c4337a71085762565345e0ab369000432293be2e482ceb9fd1a356182f26e4dde6d16 path-v16.0.0.tar.gz
|
|
"
|