Date: Wednesday, January 13, 2021 @ 13:38:23 Author: alucryd Revision: 820457
add python-confuse for beets Added: python-confuse/ python-confuse/trunk/ python-confuse/trunk/PKGBUILD ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Added: python-confuse/trunk/PKGBUILD =================================================================== --- python-confuse/trunk/PKGBUILD (rev 0) +++ python-confuse/trunk/PKGBUILD 2021-01-13 13:38:23 UTC (rev 820457) @@ -0,0 +1,44 @@ +# Maintainer: Maxime Gauduin <[email protected]> +# Contributor: Mubashshir <[email protected]> +# Contributor: Frederik “Freso” S. Olesen <[email protected]> + +pkgname=python-confuse +pkgver=1.4.0 +pkgrel=1 +pkgdesc='Painless YAML config files for Python' +arch=(any) +url=https://github.com/beetbox/confuse +license=(MIT) +depends=(python-yaml) +makedepends=( + git + python-flit + python-pip + python-poetry +) +checkdepends=(python-nose) +_tag=ca66969c95d7647eb391cad0ce69075012a51777 +source=(git+https://github.com/beetbox/confuse.git#tag=${_tag}) +sha256sums=(SKIP) + +pkgver() { + cd confuse + git describe --tags | sed 's/^v//' +} + +build() { + cd confuse + flit build --format wheel +} + +check() { + cd confuse + python -m nose +} + +package() { + PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps confuse/dist/*.whl + install -Dm 644 confuse/LICENSE -t "${pkgdir}"/usr/share/licenses/python-confuse/ +} + +# vim: ts=2 sw=2 et:
