diff --git a/backports/py3-deepmerge/APKBUILD b/backports/py3-deepmerge/APKBUILD new file mode 100644 index 0000000..e4860ea --- /dev/null +++ b/backports/py3-deepmerge/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Bart Ribbers +# Maintainer: Bart Ribbers +pkgname=py3-deepmerge +pkgver=1.1.0 +pkgrel=0 +pkgdesc="A toolset to deeply merge python dictionaries" +url="https://github.com/toumorokoshi/deepmerge" +arch="noarch" +license="MIT" +depends="python3" +makedepends=" + py3-gpep517 + py3-installer + py3-setuptools + py3-wheel + " +checkdepends="py3-pytest" +subpackages="$pkgname-pyc" +source="https://pypi.python.org/packages/source/d/deepmerge/deepmerge-$pkgver.tar.gz" +options="!check" # No tests +builddir="$srcdir/deepmerge-$pkgver" + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +package() { + python3 -m installer -d "$pkgdir" .dist/*.whl +} + +sha512sums=" +9facde604ee02271ad49d9a14e88fa23690c41728c3c350594533725c2e38803cc75f9345ff19bb63ceb318ea7c58a46ed0d6091682560509401206c8b4e8537 deepmerge-1.1.0.tar.gz +" diff --git a/user/py3-deepmerge/APKBUILD b/user/py3-deepmerge/APKBUILD deleted file mode 100644 index 892a8c0..0000000 --- a/user/py3-deepmerge/APKBUILD +++ /dev/null @@ -1,34 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -_pyname=deepmerge -pkgname="py3-$_pyname" -pkgver=1.1.0 -pkgrel=1 -arch="noarch" -pkgdesc="A tools to handle merging of nested data structures in python." -url="https://pypi.python.org/project/$_pyname" -license="MIT" -depends="python3" -makedepends="py3-build py3-installer py3-setuptools py3-setuptools_scm py3-toml py3-wheel" -checkdepends="py3-pytest" -subpackages="$pkgname-doc" -source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz" -builddir="$srcdir"/$_pyname-$pkgver - -build() { - python3 -m build --wheel --skip-dependency-check --no-isolation -} - -check() { - PYTHONPATH="$PWD/src" pytest || true -} - -package() { - python3 -m installer --destdir="$pkgdir" dist/*.whl - install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname" - install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" -} -sha512sums=" -9facde604ee02271ad49d9a14e88fa23690c41728c3c350594533725c2e38803cc75f9345ff19bb63ceb318ea7c58a46ed0d6091682560509401206c8b4e8537 py3-deepmerge-1.1.0.tar.gz -"