mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 10:27:03 +02:00
48 lines
1.1 KiB
Text
48 lines
1.1 KiB
Text
|
# Maintainer: Struan Robertson <contact@struanrobertson.co.uk>
|
||
|
pkgname=py3-bibtexparser
|
||
|
_pkgname=python-bibtexparser
|
||
|
pkgver=1.4.3
|
||
|
pkgrel=0
|
||
|
pkgdesc="Bibtex parser in Python"
|
||
|
url="https://github.com/sciunto-org/python-bibtexparser"
|
||
|
arch="noarch"
|
||
|
license="LGPL-3.0-only"
|
||
|
depends="
|
||
|
python3
|
||
|
py3-parsing
|
||
|
"
|
||
|
makedepends="
|
||
|
py3-setuptools_scm
|
||
|
py3-gpep517
|
||
|
py3-wheel
|
||
|
"
|
||
|
checkdepends="py3-pytest"
|
||
|
subpackages="$pkgname-pyc"
|
||
|
source="https://github.com/sciunto-org/python-bibtexparser/archive/v$pkgver/python-bibtexparser-v$pkgver.tar.gz"
|
||
|
builddir="$srcdir/$_pkgname-$pkgver"
|
||
|
|
||
|
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
|
||
|
|
||
|
build() {
|
||
|
gpep517 build-wheel \
|
||
|
--wheel-dir .dist \
|
||
|
--output-fd 3 3>&1 >&2
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
python3 -m venv --clear --system-site-packages .testenv
|
||
|
.testenv/bin/python -m installer .dist/*.whl
|
||
|
.testenv/bin/python -m pytest
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
python3 -m installer \
|
||
|
-d "$pkgdir" \
|
||
|
.dist/*.whl
|
||
|
}
|
||
|
|
||
|
|
||
|
sha512sums="
|
||
|
b3ba1973e3288af4fed5b91385e427558f95f1c08de59c2af0eea393d72c06ac981d907f6328007bc6d135dce768ce24c65460ae522ae6482f75f6cdec52b987 python-bibtexparser-v1.4.3.tar.gz
|
||
|
"
|