aboutsummaryrefslogtreecommitdiffstats
path: root/community/beancount/APKBUILD
blob: 0fffe726fb2b604f354e7e422d32247c958ec91a (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
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=beancount
pkgver=2.2.3
pkgrel=2
pkgdesc="Double-Entry Accounting from Text Files"
url="http://furius.ca/beancount/"
arch="all !ppc64le"  # limited by py3-grpcio
license="GPL-2.0-only"
depends="python3 py3-dateutil py3-ply py3-bottle py3-lxml py3-magic
	py3-beautifulsoup4 py3-requests py3-chardet py3-pytest
	py3-google-api-python-client"
makedepends="python3-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/blais/beancount/get/$pkgver.tar.gz"
# 0cd71fede0f3347a14ac2b7ed240b74d56a38887 2.2.1
builddir="$srcdir"/blais-$pkgname-ff1e2616b26a
options="!check"

build() {
	python3 setup.py build
	python3 setup.py build_ext -i
}

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

check() {
	python3 -m pytest --disable-warnings beancount \
		--deselect=beancount/utils/file_type_test.py::TestFileType::test_xhtml \
		--deselect=beancount/loader_test.py::TestLoadIncludesEncrypted::test_include_encrypted \
		--deselect=beancount/parser/lexer_test.py::TestLexerUnicode::test_bytes_encoded_utf16 \
		--deselect=beancount/ingest/importers/fileonly_test.py::TestFileOnly::test_match
}

sha512sums="1680dc58f79da19022e2add044c490041075f11c99d6354b452c505ef3d640e566c44f7917cf0a94c38bab8ec8984cd912659b61b4ffb8acb7526c492d23916e  beancount-2.2.3.tar.gz"