summaryrefslogtreecommitdiff
path: root/testing/py3-html2markdown/APKBUILD
blob: 99c625e95d3872be06dbf3ebfc231187b1a4a866 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-html2markdown
pkgver=0.1.7
pkgrel=2
pkgdesc="Conservatively convert html to markdown"
url="https://github.com/dlon/html2markdown"
arch="noarch"
license="MIT"
depends="
	py3-beautifulsoup4
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-markdown
	py3-pytest
	"
#source="https://pypi.python.org/packages/source/h/html2markdown/html2markdown-$pkgver.tar.gz"
source="https://github.com/dlon/html2markdown/archive/v$pkgver/html2markdown-v$pkgver.tar.gz"
builddir="$srcdir/html2markdown-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest tests.py -k 'not test_inline_tag_content'
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
cd6a9fe266e9579e52dc85e8dfe09e817a36ed7b4c038f1a237d54f229aa3f70b961f923b2e1a90f649412a4a746df651853fc19178c82935fd3ccbc87297977  html2markdown-v0.1.7.tar.gz
"