backports/py3-deepmerge: move from user

This commit is contained in:
Antoine Martin 2023-08-30 13:35:16 -04:00
parent eab6a228f8
commit 93314a5349
2 changed files with 35 additions and 34 deletions

View file

@ -0,0 +1,35 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
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
"

View file

@ -1,34 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_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
"