Package Details: python-mplcursors 0.6-2

Git Clone URL: https://aur.archlinux.org/python-mplcursors.git (read-only, click to copy)
Package Base: python-mplcursors
Description: Provides interactive data selection cursors for Matplotlib. It is inspired from mpldatacursor, with a much simplified API.
Upstream URL: https://github.com/anntzer/mplcursors
Licenses: zlib
Submitter: doragasu
Maintainer: doragasu
Last Packager: doragasu
Votes: 1
Popularity: 0.002789
First Submitted: 2024-02-27 13:24 (UTC)
Last Updated: 2024-12-31 15:57 (UTC)

Latest Comments

doragasu commented on 2024-12-31 15:58 (UTC)

@lahwaacz: Thanks, I didn't know about this standard, package updated.

lahwaacz commented on 2024-12-31 15:34 (UTC)

This PKGBUILD uses a standard PEP 517 build system according to the guidelines:

_name=mplcursors
pkgname=python-mplcursors
pkgver=0.6
pkgrel=2
pkgdesc="Provides interactive data selection cursors for Matplotlib. It is inspired from mpldatacursor, with a much simplified API."
arch=(any)
url="https://github.com/anntzer/mplcursors"
license=(Zlib)
depends=(
  python
  python-matplotlib
)
makedepends=(
  python-build
  python-installer
  python-wheel
  python-setuptools
  python-setuptools-scm
)
source=($pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz)
sha512sums=('4bcee5e01492deb4fed851daf0e6b01e217da257389af768b61a8c69bf7115727c9faef17f5f9455de1c718c52a18aab24ce5eeb625e1207810fd8b3d93ec503')

build() {
  cd $_name-$pkgver
  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}