mio df4f1f2146 community/py3-patchworklib: upgrade to 0.6.5
https://github.com/ponnhide/patchworklib#news

Fixes a failed test `tests/test_patchworklib.py::test_example_plot`.

```
old_legend = <matplotlib.legend.Legend object at 0x3ff3b86a600>

    def move_legend(self, new_loc, **kws):

[...]

        self._comeback()
        old_legend = self.legend_
>       handles = old_legend.legendHandles
E       AttributeError: 'Legend' object has no attribute 'legendHandles'. Did you mean: 'legend_handles'?

patchworklib/patchworklib.py:3000: AttributeError
```
2024-11-13 14:32:27 +00:00

53 lines
1.6 KiB
Plaintext

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-patchworklib
pkgver=0.6.5
_gitrev="4f8dfc0be0204064ec07aefd1e4b4f19c82d3a29"
pkgrel=0
pkgdesc="A subplot manager for intuitive layouts in matplotlib, seaborn, and plotnine"
url="https://github.com/ponnhide/patchworklib"
arch="noarch"
license="GPL-3.0-or-later"
depends="
python3
py3-dill
py3-matplotlib
py3-numpy
py3-pandas
py3-plotnine
py3-seaborn
"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest-xdist py3-plotnine"
subpackages="$pkgname-pyc"
# Use gitrev corresponding to the release version until upstream tags it
# source="https://github.com/ponnhide/patchworklib/archive/v$pkgver/patchworklib-$pkgver.tar.gz"
# builddir="$srcdir/patchworklib-$pkgver"
source="py3-patchworklib-$_gitrev.tar.gz::https://github.com/ponnhide/patchworklib/archive/$_gitrev.tar.gz"
builddir="$srcdir"/patchworklib-$_gitrev
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
# test_sns_and_p9: FileExistsError with seaborn on armhf CI
case "$CARCH" in
armhf) .testenv/bin/python3 -m pytest -n auto -k "not test_sns_and_p9";;
*) .testenv/bin/python3 -m pytest -n auto;;
esac
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
5913919d05206dac72b4141019d41a6c62d1e369786a058456a7c7f9f7a77525556b66e9347b3245ea5287da9ec655edfffdfdc3d580c8c57ed0252fcf9cd634 py3-patchworklib-4f8dfc0be0204064ec07aefd1e4b4f19c82d3a29.tar.gz
"