aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-ruamel.yaml/APKBUILD
blob: 79ad91ca0fb366904f3b168a8bc86b7e182c2dd2 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-ruamel.yaml
pkgver=0.16.5
pkgrel=0
pkgdesc="A YAML parser/emitter"
url="https://bitbucket.org/ruamel/yaml"
arch="all"
license="MIT"
replaces="py-ruamel py3-ruamel"
provides="py-ruamel=$pkgver-r$pkgrel py3-ruamel=$pkgver-r$pkgrel"
makedepends="python3-dev py3-setuptools"
checkdepends="py3-pytest py3-ruamel.std.pathlib"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/ruamel/yaml/get/$pkgver.tar.gz"
builddir="$srcdir/ruamel-yaml-ff02b83b8f91"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" \
		--single-version-externally-managed
}

check() {
	PYTHONPATH="$PWD/build/lib" python3 -m pytest \
		--deselect=_test/test_issues.py::TestIssues::test_issue_82 \
		--deselect=_test/test_issues.py::TestIssues::test_issue_220 \
		--deselect=_test/test_issues.py::TestIssues::test_issue_238 \
		--deselect=_test/test_yamlobject.py::test_monster \
		--deselect=_test/test_yamlobject.py::test_qualified_name00 \
		--deselect=_test/test_cyaml.py::test_load_cyaml \
		--deselect=_test/test_cyaml.py::test_dump_cyaml \
		--deselect=_test/test_cyaml.py::test_load_cyaml_1_2 \
		--deselect=_test/test_cyaml.py::test_dump_cyaml_1_2 \
		_test/test_*.py
}

sha512sums="ce08ae50b9084d56c8e0f5a546cb3a23d4cdad643836aa60a44a995459d3d90057d14fa79493c36f415d7bc22936806d0b4f9b34f93192ac536526a314024c45  py3-ruamel.yaml-0.16.5.tar.gz"