[arch-commits] Commit in (3 files)

Antonio Rojas arojas at gemini.archlinux.org
Mon Aug 29 19:00:48 UTC 2022


    Date: Monday, August 29, 2022 @ 19:00:48
  Author: arojas
Revision: 1285569

New jsonschema dependency

Added:
  python-hatch-fancy-pypi-readme/
  python-hatch-fancy-pypi-readme/trunk/
  python-hatch-fancy-pypi-readme/trunk/PKGBUILD

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

Added: python-hatch-fancy-pypi-readme/trunk/PKGBUILD
===================================================================
--- python-hatch-fancy-pypi-readme/trunk/PKGBUILD	                        (rev 0)
+++ python-hatch-fancy-pypi-readme/trunk/PKGBUILD	2022-08-29 19:00:48 UTC (rev 1285569)
@@ -0,0 +1,31 @@
+# Maintainer:
+
+pkgname=python-hatch-fancy-pypi-readme
+pkgver=22.3.0
+pkgrel=1
+pkgdesc='Fancy PyPI READMEs with Hatch'
+arch=(any)
+url='https://github.com/hynek/hatch-fancy-pypi-readme'
+license=(MIT)
+depends=(python-hatchling)
+makedepends=(python-build python-installer)
+checkdepends=(python-pytest python-wheel)
+source=(https://github.com/hynek/hatch-fancy-pypi-readme/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('3a51bbe0eb5044f012083ce2954e0875116553429289d29712b824defe90fab0')
+
+build() {
+  cd hatch-fancy-pypi-readme-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd hatch-fancy-pypi-readme-$pkgver
+  PYTHONPATH="$PWD"/src \
+  pytest -v
+}
+
+package() {
+  cd hatch-fancy-pypi-readme-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list