# Contributor: Leonardo Arena # Maintainer: Keith Maxwell pkgname=py3-ruamel.yaml _pyname=ruamel.yaml pkgver=0.16.7 pkgrel=0 pkgdesc="A YAML parser/emitter" options="!check" # tests are not included in the latest artifact on PyPI url="https://sourceforge.net/projects/ruamel-yaml/" arch="noarch" license="MIT" replaces="py-ruamel py3-ruamel" provides="py-ruamel=$pkgver-r$pkgrel py3-ruamel=$pkgver-r$pkgrel" depends="py3-ruamel.yaml.clib" makedepends="python3-dev py3-setuptools" checkdepends="py3-pytest py3-ruamel.std.pathlib" source="https://files.pythonhosted.org/packages/source/r/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" build() { python3 setup.py build } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" \ --single-version-externally-managed } check() { PYTHONPATH="$PWD/build/lib" pytest-3 \ --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="49ceee329017bb32f9d9de1b1951e95dd561480a7506b3783f6a7a59ae30af83d6ac363654c66b39a532f22d1cb31bcd034e94c9ddcd8381ec4eb76687923c87 ruamel.yaml-0.16.7.tar.gz"