[arch-commits] Commit in python-straight.plugin/repos (2 files)

Caleb Maclennan alerque at gemini.archlinux.org
Tue May 17 09:44:21 UTC 2022


    Date: Tuesday, May 17, 2022 @ 09:44:21
  Author: alerque
Revision: 1207662

archrelease: copy trunk to community-any

Added:
  python-straight.plugin/repos/community-any/
  python-straight.plugin/repos/community-any/PKGBUILD
    (from rev 1207661, python-straight.plugin/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-straight.plugin/repos/community-any/PKGBUILD (from rev 1207661, python-straight.plugin/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-05-17 09:44:21 UTC (rev 1207662)
@@ -0,0 +1,33 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+_pipname=straight.plugin
+pkgname=python-$_pipname
+pkgver=1.5.0
+pkgrel=3
+pkgdesc='A simple namespaced plugin facility'
+arch=(any)
+url="https://github.com/ironfroggy/$_pipname"
+license=(MIT)
+depends=(python)
+makedepends=(python-{build,installer}
+             python-setuptools
+             python-wheel)
+_archive="$_pipname-$pkgver"
+source=("https://pypi.python.org/packages/source/${_pipname::1}/$_pipname/$_archive.tar.gz")
+sha256sums=('818a7641068932ed6436d0af0a3bb77bbbde29df0a7142c8bd1a249e7c2f0d38')
+
+build() {
+	cd "$_archive"
+	python -m build -wn
+}
+
+check() {
+	cd "$_archive"
+    PYTHON_PATH=. python tests.py
+}
+
+package() {
+	cd "$_archive"
+	python -m installer -d "$pkgdir" dist/*.whl
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}



More information about the arch-commits mailing list