diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-09-12 20:20:59 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-09-12 20:52:59 +0200 |
commit | 0d0d84d5985df743bfb4e77050228f0d4ca90af6 (patch) | |
tree | 7c79422a066bccfe81464e90c112aedfb09e151d /dev-python/pygments | |
parent | sys-kernel/gentoo-sources: Linux patch 4.14.198 (diff) | |
download | gentoo-0d0d84d5985df743bfb4e77050228f0d4ca90af6.tar.gz gentoo-0d0d84d5985df743bfb4e77050228f0d4ca90af6.tar.bz2 gentoo-0d0d84d5985df743bfb4e77050228f0d4ca90af6.zip |
dev-python/pygments: Bump to 2.7.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pygments')
-rw-r--r-- | dev-python/pygments/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pygments/pygments-2.7.0.ebuild | 41 |
2 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/pygments/Manifest b/dev-python/pygments/Manifest index 7a18ca650963..50ed4869fa61 100644 --- a/dev-python/pygments/Manifest +++ b/dev-python/pygments/Manifest @@ -1,2 +1,3 @@ DIST Pygments-2.5.2.tar.gz 20263984 BLAKE2B fab5d11458bcb3bd9a825026f119c0bde6f672b00704f3d5db24ce050b959f0c1a34544642fc1b5911f6ae12a9b595a2cbedadc791d6a3e8c83da1a1add60471 SHA512 d6715ca26cdb68d4c771bb530b2395805025c14c78d9099b033d3410ea239c41033fb611e43e39cbaa4ac38078a09324d8cfde42269129be0a096dcc13586859 DIST Pygments-2.6.1.tar.gz 3303050 BLAKE2B 105f43301d2e7348937345519fe04817fa5baa5de4d0b9b0e9096d34612018bb992721df58a24008b009c0690054ac02c18c57b6b1a8a68039f9b4d20b5900a6 SHA512 0d793bb6eabe43645541347e44932ee50ccd4309f40e7a327422bcbe57d40a7cb8bbf2fb0911744ed6f316c6c08f4216462be88d79192a2ea004d6da51329932 +DIST Pygments-2.7.0.tar.gz 2358072 BLAKE2B a9c4753f62589a676300d366804aecc9349de2367b609919518f11be3ea40c3fb264d68c5da515cf80aaa42fb4e4dd9dd362d58945148a21c81a214c7e6c6b58 SHA512 b70714dd33cac725e0b32678971ab5902895c7d2fd8c9548f69110af32c82ba46a2d366dbbc9c4017e91c39120abe3e5d28e69893e8d92058f0bcbf579909db5 diff --git a/dev-python/pygments/pygments-2.7.0.ebuild b/dev-python/pygments/pygments-2.7.0.ebuild new file mode 100644 index 000000000000..d203e4246cb1 --- /dev/null +++ b/dev-python/pygments/pygments-2.7.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) + +inherit distutils-r1 bash-completion-r1 + +MY_PN="Pygments" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Pygments is a syntax highlighting package written in Python" +HOMEPAGE="https://pygments.org/ https://pypi.org/project/Pygments/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + virtual/ttf-fonts + )" + +distutils_enable_sphinx doc + +python_test() { + cp -r -l tests "${BUILD_DIR}"/ || die + pytest -vv "${BUILD_DIR}"/tests || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + newbashcomp external/pygments.bashcomp pygmentize +} |