Date: Thursday, April 6, 2023 @ 13:10:18
Author: felixonmars
Revision: 1438782
archrelease: copy trunk to community-staging-any
Added:
python-mistune/repos/community-staging-any/
python-mistune/repos/community-staging-any/PKGBUILD
(from rev 1438781, python-mistune/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-mistune/repos/community-staging-any/PKGBUILD (from rev 1438781,
python-mistune/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 13:10:18 UTC (rev 1438782)
@@ -0,0 +1,36 @@
+# Maintainer:
+# Contributor: Kyle Keen <[email protected]>
+# Contributor: David Runge <[email protected]>
+# Contributor: shmilee
+
+_pyname=mistune
+pkgname=python-mistune
+pkgver=2.0.5
+pkgrel=2
+pkgdesc="A fast yet powerful Python Markdown parser with renderers and plugins"
+arch=(any)
+url="https://github.com/lepture/mistune"
+license=(BSD)
+depends=(python)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest)
+source=(https://github.com/lepture/mistune/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha512sums=('ca1cb685e55550d8adc421cec1bb5359895e04bc80259eb0bdc5b554669758e92d3f10cdd4bd01a15ca9aeeca62f9c8813a14101db0281b9a93eeecbff496aa0')
+b2sums=('fbece6ecb32003b40772b5772eb0415d1ae3654a52625578ff92daa4ed8df38758a6e725ddda86b2f7848406942454e09e52dca6583444f03769bd4911a4c5aa')
+
+build() {
+ cd $_pyname-$pkgver
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+ cd $_pyname-$pkgver
+ pytest -vv
+}
+
+package() {
+ cd $_pyname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 README.md -t "$pkgdir/usr/share/doc/${pkgname}/"
+ install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname}/"
+}