# Maintainer: Carlos Aznarán # Contributor: Luis Martinez # Contributor: Robert Kubosz _base=abjad pkgname=python-${_base} pkgver=3.19 pkgrel=1 pkgdesc="Python API for building LilyPond files" arch=(any) url="https://github.com/Abjad/${_base}" license=(GPL3) depends=(lilypond python-ply python-roman python-uqbar) makedepends=(python-build python-installer python-setuptools python-wheel) optdepends=('graphviz: creates rhythm-trees graphs and other tree structures' 'python-abjad-ext-nauert: quantization extension' 'python-abjad-ext-rmakers: rhythm-maker extension' 'timidity++: playback generated MIDI files') checkdepends=(python-pytest) source=(${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha512sums=('b20c50bcb9b2b9547d25620a74a6d5c45c774bbdd947e69009aad6394cd5cca350260618339941b08c60e08cc30a00d5834466aba9a4264e2cee8ff961d69ff1') # validpgpkeys=('EF80D3D6F5926FC997919D6A27A5BE0A6ADE7F36') ## Trevor Baca build() { cd ${_base}-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } check() { cd ${_base}-${pkgver} python -m venv --system-site-packages test-env test-env/bin/python -m installer dist/*.whl test-env/bin/python -m pytest tests # -x -c /dev/null } package() { cd ${_base}-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl }