diff options
author | Caleb Maclennan | 2022-06-17 09:54:56 +0300 |
---|---|---|
committer | Caleb Maclennan | 2022-06-17 09:54:56 +0300 |
commit | f61b32f5b47646af0aba412f41146afbf870f8f2 (patch) | |
tree | 5a89af0d3177f962543f3f7af50051f7f3f59a14 | |
download | aur-f61b32f5b47646af0aba412f41146afbf870f8f2.tar.gz |
Initial upload: python-axisregistry 0.2.0-1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..85676b1cc127 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-axisregistry + pkgdesc = easy access to the GF Axis Registry + pkgver = 0.2.0 + pkgrel = 1 + url = https://github.com/googlefonts/axisregistry + arch = any + license = Apache + checkdepends = python-pytest + makedepends = cython + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools-scm + depends = python + depends = python-protobuf + source = https://files.pythonhosted.org/packages/source/a/axisregistry/axisregistry-0.2.0.tar.gz + sha256sums = 561e4b81cc4703afaf4d3cb99771728f1b4b567af2766d008c2b6dbe077efb0d + +pkgname = python-axisregistry diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..83049ca232a2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Caleb Maclennan <caleb@alerque.com> + +_pyname=axisregistry +pkgname=python-$_pyname +pkgver=0.2.0 +pkgrel=1 +pkgdesc='easy access to the GF Axis Registry' +arch=(any) +url="https://github.com/googlefonts/$_pyname" +license=(Apache) +depends=(python + python-protobuf) +makedepends=(cython + python-{build,installer,wheel} + python-setuptools-scm) +checkdepends=(python-pytest) +_archive="$_pyname-$pkgver" +source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz") +sha256sums=('561e4b81cc4703afaf4d3cb99771728f1b4b567af2766d008c2b6dbe077efb0d') + +prepare() { + cd "$_archive" + sed -i -e '/setuptools_scm/s/>=4,<6.1//' setup.py +} + +build() { + cd "$_archive" + python -m build -wn +} + +check() { + cd "$_archive" + PYTHONPATH=Lib pytest +} + +package() { + cd "$_archive" + python -m installer -d "$pkgdir" dist/*.whl +} |