diff --git a/backports/py3-pathvalidate/APKBUILD b/backports/py3-pathvalidate/APKBUILD new file mode 100644 index 0000000..a3968b5 --- /dev/null +++ b/backports/py3-pathvalidate/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Lauren N. Liberda +# Maintainer: Lauren N. Liberda +pkgname=py3-pathvalidate +pkgver=3.1.0 +pkgrel=0 +pkgdesc="Python library to sanitize/validate a string such as filenames/file-paths/etc" +url="https://github.com/thombashi/pathvalidate" +arch="noarch" +license="MIT" +depends="python3" +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + " +checkdepends="py3-pytest py3-click py3-faker" +options="!check" # tests require unpackaged unmaintained dependencies +subpackages="$pkgname-pyc" +source="https://github.com/thombashi/pathvalidate/archive/refs/tags/v$pkgver/pathvalidate-$pkgver.tar.gz" +builddir="$srcdir/pathvalidate-$pkgver" + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +8f1d9905c5183ab66f20b9bbd69db0f0547ffde07333a36425f66b76191de47236bf1e0809b0cf4d181ea6714aeaef03e1b05dc1d6599e0d359cb96cdbec5db4 pathvalidate-3.1.0.tar.gz +" diff --git a/user/py3-pathvalidate/APKBUILD b/user/py3-pathvalidate/APKBUILD deleted file mode 100644 index c24c3d1..0000000 --- a/user/py3-pathvalidate/APKBUILD +++ /dev/null @@ -1,27 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -pkgname=py3-pathvalidate -_pyname="pathvalidate" -pkgver=2.5.2 -pkgrel=0 -arch="noarch" -pkgdesc="Sanitize/validate strings in filenames/file-paths/etc" -url="https://pypi.python.org/project/$_pyname" -license="MIT" -depends="python3" -makedepends="py3-setuptools" -options="!check" # No testsuite -source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" -builddir="$srcdir"/$_pyname-$pkgver - -build() { - python3 setup.py build -} - -package() { - python3 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build -} -sha512sums=" -44c9d329f60deb81590854e0aa4699e4105821535aa5bf306c78df395c510ce851075db246937a459f46ee2f9abc54538a4a48995b94f5eb031f14fe60c769ce py3-pathvalidate-2.5.2.tar.gz -"