1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_6 )
8 inherit distutils-r1 vcs-snapshot
10 DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation"
11 HOMEPAGE="https://pypi.org/project/ruamel.yaml/ https://bitbucket.org/ruamel/yaml"
13 SRC_URI="https://bitbucket.org/${MY_PN/.//}/get/${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="amd64 ~arm64 ~x86"
19 RESTRICT="!test? ( test )"
26 dev-python/setuptools[${PYTHON_USEDEP}]
28 dev-python/flake8[${PYTHON_USEDEP}]
29 dev-python/pytest[${PYTHON_USEDEP}]
30 dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}]
35 distutils-r1_python_install --single-version-externally-managed
36 find "${ED}" -name '*.pth' -delete || die
40 # This file produced by setup.py breaks finding system-wide installed
41 # ruamel.std.pathlib due to shared namespace
42 rm "${BUILD_DIR}/lib/ruamel/__init__.py" || die
44 py.test -v _test/test_*.py || die