summaryrefslogtreecommitdiff
path: root/community/py3-pathlib2/APKBUILD
blob: 4b0a84100a34050dd472b1f9a6c9373ec3157ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pathlib2
pkgver=2.3.7
pkgrel=1
pkgdesc="Fork of pathlib aiming to support the full stdlib Python API"
url="https://github.com/jazzband/pathlib2"
arch="noarch"
license="MIT"
depends="python3 py3-six"
makedepends="py3-setuptools"
source="pathlib2-$pkgver.tar.gz::https://github.com/jazzband/pathlib2/archive/$pkgver.tar.gz"
builddir="$srcdir/pathlib2-$pkgver"

replaces="py-pathlib2" # Backwards compatibility
provides="py-pathlib2=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
45e0006651795199f39b8e9c16eb6c551b66c483592f9aef8e6dcd1ed45766713777c8dccdbfdb0ae2c3984a138276ae2c8ca5985dc3d25a14b669fc6a88584b  pathlib2-2.3.7.tar.gz
"