diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-11-13 13:10:00 +0000 |
commit | e9d044d4b9b71200a96adfa280848858c0f468c9 (patch) | |
tree | 1bd8ef816043a8cd340f1d774e79553a1a7d31d8 /dev-python/parse_type/parse_type-0.5.6.ebuild | |
parent | fc2f1018fc323ef2c6572734a9b130427cba76a6 (diff) |
gentoo resync : 13.11.2021
Diffstat (limited to 'dev-python/parse_type/parse_type-0.5.6.ebuild')
-rw-r--r-- | dev-python/parse_type/parse_type-0.5.6.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/parse_type/parse_type-0.5.6.ebuild b/dev-python/parse_type/parse_type-0.5.6.ebuild new file mode 100644 index 000000000000..dc269e3e675f --- /dev/null +++ b/dev-python/parse_type/parse_type-0.5.6.ebuild @@ -0,0 +1,40 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Extension to the parse module" +HOMEPAGE="https://pypi.org/project/parse-type/" +SRC_URI="https://github.com/jenisys/parse_type/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/parse[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${PN}-0.5.2-setupwarn.patch +) + +DOCS=( CHANGES.txt README.rst ) + +python_prepare_all() { + distutils-r1_python_prepare_all + + # disable unnecessary html test report and its pytest-html dependency + sed -i '/^addopts/,/report.xml$/d' pytest.ini || die +} + +python_compile() { + 2to3 -nw --no-diffs ${PN} tests || die + + distutils-r1_python_compile +} |