blob: cd6cc76991cdd8104bea89e9c967817ecdb85bf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_pipname=pancritic
pkgname=python-$_pipname
pkgver=0.3.2
pkgrel=6
pkgdesc='CriticMarkdup parser with optional pandoc backend'
arch=(any)
url="https://github.com/ickc/$_pipname"
license=(GPL-3.0-only)
depends=(python)
makedepends=(pandoc
python-{build,installer,wheel}
python-setuptools
texlive-core
texlive-latexextra)
optdepends=('python-markdown: Markdown backend for Markdown output'
'python-markdown2: Markdown2 backend for Markdown output'
'python-panflute: Panflute backend for Markdown output'
'python-pypandoc: Pandoc backend for Markdown output')
checkdepends=(python-coverage
python-markdown
python-markdown2
python-panflute
python-pypandoc)
_archive="$_pipname-$pkgver"
source=("$url/archive/v$pkgver/$_archive.tar.gz")
sha256sums=('670c0093924c11bb05a42ace4250166e076ad00f41e4208972613c07e3573515')
build() {
cd "$_archive"
python -m build -wn
}
# Note upstream test suite is known to be broken (non-deterministic), even the
# upstream CI has an error code hack as seen here in check() to not flunk on
# tests that fail due to differing output across library versions. Given this,
# disabling the test by default for this build seems reasonable until they have
# a deterministic check function.
check() {
cd "$_archive"
# make test ERRORCODE=0
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
}
|