aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-path/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-path/APKBUILD')
-rw-r--r--community/py3-path/APKBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/py3-path/APKBUILD b/community/py3-path/APKBUILD
new file mode 100644
index 0000000000..bbb13a5c20
--- /dev/null
+++ b/community/py3-path/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=py3-path
+pkgver=15.1.2
+pkgrel=3
+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="a555fae28c3edfeb0f1114a205373ae3e7278373b98820877acafee6e88f4fcdf7eb2da576eafb2123fc77305e90a58b4c1b11193e092d0a5a6d2a779099faf6 path-v15.1.2.tar.gz"