# Contributor: Keith Maxwell # Maintainer: Keith Maxwell pkgname=beancount pkgver=2.2.3 pkgrel=2 pkgdesc="Double-Entry Accounting from Text Files" url="http://furius.ca/beancount/" arch="all" 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"