[arch-commits] Commit in python-myst-parser/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 14:47:04 UTC 2021


    Date: Tuesday, November 30, 2021 @ 14:47:04
  Author: felixonmars
Revision: 1057723

archrelease: copy trunk to community-staging-any

Added:
  python-myst-parser/repos/community-staging-any/
  python-myst-parser/repos/community-staging-any/PKGBUILD
    (from rev 1057722, python-myst-parser/trunk/PKGBUILD)

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

Copied: python-myst-parser/repos/community-staging-any/PKGBUILD (from rev 1057722, python-myst-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 14:47:04 UTC (rev 1057723)
@@ -0,0 +1,38 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=MyST-Parser
+pkgname=python-myst-parser
+pkgver=0.15.2
+pkgrel=2
+pkgdesc='An extended commonmark compliant parser, with bridges to docutils/sphinx'
+arch=('any')
+url='https://github.com/executablebooks/MyST-Parser'
+license=('MIT')
+depends=('python-markdown-it-py' 'python-mdit_py_plugins' 'python-yaml' 'python-docutils' 'python-sphinx' 'python-jinja')
+optdepends=('python-linkify-it-py: linkify support')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-regressions' 'python-beautifulsoup4' 'python-linkify-it-py')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('2426a36672bd7ab7c956199f191f3e3b6242efcb2897ebb5dc720f8a4e7ef7a97568ac8c671d32842b91aa4bf367c08c55e26b35f32a955d2f89b15d324920aa')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python -m pytest -k 'not test_sphinx_builds and not test_fixtures'
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list