mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-12 18:59:50 +03:00
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
# Contributor: Alex McGrath <amk@amk.ie>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-deepdiff
|
|
_pkgname=deepdiff
|
|
pkgver=8.5.0
|
|
pkgrel=0
|
|
pkgdesc="Deep Difference and Search of any Python object/data"
|
|
url="https://github.com/seperman/deepdiff"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-orderly-set py3-orjson py3-click"
|
|
makedepends="py3-flit-core py3-gpep517 py3-installer"
|
|
# toml/yaml are optional dependencies
|
|
checkdepends="
|
|
py3-dateutil
|
|
py3-jsonpickle
|
|
py3-numpy
|
|
py3-pandas
|
|
py3-pytest
|
|
py3-pytest-benchmark
|
|
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
|
|
# polars not packaged
|
|
.testenv/bin/python3 -m pytest \
|
|
-k 'not test_pydantic1 and not test_pydantic2' \
|
|
--deselect tests/test_hash.py::TestDeepHashPrep::test_polars
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
8e36a11a544a3810615cab6cf5e1097c7caee73779679e58ece8acd235689bbdfa6c9f2c2fbbafd445099e7983255c65b409011a927804c6ea7e1c62a2d746b4 deepdiff-8.5.0.tar.gz
|
|
"
|