blob: 4162c6bbbacadfa54dcc1f1aadd6683bc03ee9e7 (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-ruamel.yaml
pkgver=0.15.91
pkgrel=1
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"
# 22286ce99d6552c658cb11d0a8a3c9b962ebe510 0.15.91
builddir="$srcdir/ruamel-yaml-22286ce99d65"
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir" \
--single-version-externally-managed
}
check(){
cd "$builddir"
_plat_specifier="$(python3 <<-EOF
from distutils.util import get_platform
from sys import version_info
print("{}-{}.{}".format(get_platform(), *version_info))
EOF
)"
PYTHONPATH="build/lib.$_plat_specifier" 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 \
_test/test_*.py
}
sha512sums="c9c9de649a40cb55953005a2fa991112c34a699409379c3c04d33f9f42efa7d0e43fb4c7e7f5caea1b6a86af4e0785925c541632bca88ab6b9c52969260b705a py3-ruamel.yaml-0.15.91.tar.gz"
|