# Maintainer: pkgname=py3-jsonpickle pkgver=3.0.1 pkgrel=4 pkgdesc="Serializing any arbitrary object graph into JSON" url="https://pypi.org/project/jsonpickle/" arch="noarch" license="BSD-3-Clause" depends="python3" makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel" checkdepends="py3-pytest py3-numpy py3-pandas" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/j/jsonpickle/jsonpickle-$pkgver.tar.gz pandas2.patch noaddopts.patch " builddir="$srcdir/jsonpickle-$pkgver" replaces="py-jsonpickle" # Backwards compatibility provides="py-jsonpickle=$pkgver-r$pkgrel" # Backwards compatibility 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 # ecdsa: no gmpy # roundtrip: breaks on 32bit .testenv/bin/python3 -m pytest --deselect tests/ecdsa_test.py -k 'not test_multindex_dataframe_roundtrip' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 88634acb751a0bac2c9d2ca9872dd92aeab3245ec7c1b0dced0272dc9104923b2143898fd3f7f2666bd2b220ab2396e0b2f065853256b5995695ca56534a5ea5 jsonpickle-3.0.1.tar.gz b30595d7d39cc869afc50b6eaa8a94e057523f9d9c447ad960ad08d49345e1e2bfd1cdd9b1b2a39826731e60f4bd36bfcc605d3a1224d4a702bb2d9f74923950 pandas2.patch f39146b62acd02e900157a0e541f12882f0024567ee83b5327ddfcf610fe8aada35f563e62aa92fbe504ef79a1ef51705ef22e023c2879eca9f24c8d80c11331 noaddopts.patch "