ayaports/user/py3-deepmerge/APKBUILD

35 lines
1.1 KiB
Text
Raw Normal View History

2022-12-27 20:40:33 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=deepmerge
pkgname="py3-$_pyname"
pkgver=1.1.0
2023-01-12 18:48:03 +00:00
pkgrel=1
2022-12-27 20:40:33 +00:00
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() {
2023-01-12 18:48:03 +00:00
python3 -m build --wheel --skip-dependency-check --no-isolation
2022-12-27 20:40:33 +00:00
}
check() {
PYTHONPATH="$PWD/src" pytest || true
}
package() {
2023-01-12 18:48:03 +00:00
python3 -m installer --destdir="$pkgdir" dist/*.whl
2022-12-27 20:40:33 +00:00
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
"