mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
# Contributor: Alex McGrath <amk@amk.ie>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-deepdiff
|
|
_pkgname=deepdiff
|
|
pkgver=7.0.1
|
|
pkgrel=0
|
|
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="
|
|
2f3a7f7d6493e040e6253ec6349518f01dd8648d002b53694df56fa409df7e6685aee2e2839cf4120a003c7aa77760a9ac67417ff069bfa168bd101ea1338b82 deepdiff-7.0.1.tar.gz
|
|
"
|