blob: 195aa1b2180ea3fa27ce642dea5163987ece9e7b (
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
49
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# 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.
BUILDENV+=('!check')
_pipname=pancritic
pkgname=python-$_pipname
pkgver=0.3.2
pkgrel=3
pkgdesc='CriticMarkdup parser with optional pandoc backend'
arch=(any)
url="https://github.com/ickc/$_pipname"
license=(GPL3)
depends=(python)
makedepends=(pandoc
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=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('670c0093924c11bb05a42ace4250166e076ad00f41e4208972613c07e3573515')
build() {
cd "$_archive"
python setup.py build
}
check() {
cd "$_archive"
make test ERRORCODE=0
}
package() {
cd "$_archive"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|