aports/community/py3-deepdiff/APKBUILD
Celeste a2bd408c8e */py3-<various>: enable on loongarch64
also, remove disable reason comment leftover from previous commit
2024-07-14 03:31:43 +00:00

48 lines
1.2 KiB
Plaintext

# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-deepdiff
_pkgname=deepdiff
pkgver=6.7.1
pkgrel=2
pkgdesc="Deep Difference and Search of any Python object/data"
url="https://github.com/seperman/deepdiff"
arch="noarch"
license="MIT"
depends="py3-ordered-set py3-orjson py3-click"
makedepends="py3-setuptools py3-gpep517 py3-installer py3-wheel"
# toml/yaml are optional dependencies
checkdepends="
py3-dateutil
py3-jsonpickle
py3-numpy
py3-pytest
py3-toml
py3-tomli-w
py3-yaml
"
subpackages="$pkgname-pyc"
source="https://github.com/seperman/deepdiff/archive/refs/tags/$pkgver/deepdiff-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
# needs newer pydantic version
.testenv/bin/python3 -m pytest -k 'not test_pydantic1 and not test_pydantic2'
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
e2ed0e275ebf89dd21026189fc5b9d362e4c012d28d5e4ca516f87aab97df7df080d6fd4749891ddf490ef8f8e99e5d5cb93450b355fe21774de9ccd11304b8e deepdiff-6.7.1.tar.gz
"