diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-10-05 09:21:15 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-10-05 10:27:25 +0200 |
commit | c27fb314ef00847a3e7e3d8213cf78e682c5fb1d (patch) | |
tree | b7d013d6064aff3263e7eb1b4ec518a4cabf01b3 /dev-python | |
parent | dev-python/dns-lexicon: Bump to 3.8.0 (diff) | |
download | gentoo-c27fb314ef00847a3e7e3d8213cf78e682c5fb1d.tar.gz gentoo-c27fb314ef00847a3e7e3d8213cf78e682c5fb1d.tar.bz2 gentoo-c27fb314ef00847a3e7e3d8213cf78e682c5fb1d.zip |
dev-python/cairocffi: Bump to 1.3.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/cairocffi/Manifest | 1 | ||||
-rw-r--r-- | dev-python/cairocffi/cairocffi-1.3.0.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/cairocffi/Manifest b/dev-python/cairocffi/Manifest index 507cb439c5a2..107da076235d 100644 --- a/dev-python/cairocffi/Manifest +++ b/dev-python/cairocffi/Manifest @@ -1 +1,2 @@ DIST cairocffi-1.2.0.tar.gz 70393 BLAKE2B b5cc69ec2805524e8f66a6234c4e19502181fad18c754379d91b05c2d2a88c82742f2b2057afcaac93f4d23ee64b41b2e84f029b6cb4ce2e7b3fa81ae0e8a485 SHA512 0f5b58ae85b2cc880bfb8ede6cbfe4905737211dab5b080815eb59f7cdd9c580367b9e00e7216d68ea9cbb84bda3f21ddcbccb2e744b86d6da8b991cffb96caf +DIST cairocffi-1.3.0.tar.gz 88784 BLAKE2B 022634825febd3d70a0115f0632e9b146719a2ab802583e0f57ebbd36c65c9e73f4547dbc5ea3651b8b38a043d519f000e908c34b77f3bf49e2ed5ded1a0ca02 SHA512 be459a5f4c1986cf339b7b15fdb7d3ac52476c8c31ff663b4708917ce8abd6fc66860d1966744b69aebf7aebca4415b32166df79505ad42f315ffd76d7163d7e diff --git a/dev-python/cairocffi/cairocffi-1.3.0.ebuild b/dev-python/cairocffi/cairocffi-1.3.0.ebuild new file mode 100644 index 000000000000..7465ac246324 --- /dev/null +++ b/dev-python/cairocffi/cairocffi-1.3.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 virtualx + +DESCRIPTION="CFFI-based drop-in replacement for Pycairo" +HOMEPAGE="https://github.com/Kozea/cairocffi" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/cffi-1.1.0:=[${PYTHON_USEDEP}] + ' 'python*') + >=dev-python/xcffib-0.3.2[${PYTHON_USEDEP}] + x11-libs/cairo:0=[X,xcb(+)] + x11-libs/gdk-pixbuf[jpeg]" +BDEPEND=" + test? ( dev-python/numpy[${PYTHON_USEDEP}] )" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${PN}-0.8.0-tests.patch +) + +src_prepare() { + sed -i -e '/pytest-/d' -e '/addopts/d' setup.cfg || die + distutils-r1_src_prepare +} + +python_test() { + virtx pytest -vv --pyargs cairocffi +} |