diff options
author | Sébastien Fabbro <bicatali@gentoo.org> | 2016-02-18 22:58:18 +0000 |
---|---|---|
committer | Sébastien Fabbro <bicatali@gentoo.org> | 2016-02-18 22:58:18 +0000 |
commit | 97a7d5947ddd4e5eff5d38b60c61f3153efbd2c7 (patch) | |
tree | 6104b093c313f64c01feba677d1192d2faa54fdd /dev-python | |
parent | app-crypt/libu2f-host: Version bump (diff) | |
download | gentoo-97a7d5947ddd4e5eff5d38b60c61f3153efbd2c7.tar.gz gentoo-97a7d5947ddd4e5eff5d38b60c61f3153efbd2c7.tar.bz2 gentoo-97a7d5947ddd4e5eff5d38b60c61f3153efbd2c7.zip |
dev-python/pyavm: version bump
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pyavm/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyavm/files/pyavm-0.9.2-deprecated-fromstring.patch | 15 | ||||
-rw-r--r-- | dev-python/pyavm/pyavm-0.9.2.ebuild | 38 |
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/pyavm/Manifest b/dev-python/pyavm/Manifest index 792d0259ef8f..c64932eb7e2b 100644 --- a/dev-python/pyavm/Manifest +++ b/dev-python/pyavm/Manifest @@ -1 +1,2 @@ DIST PyAVM-0.9.1.tar.gz 99461 SHA256 5b44dc29ee595849aed94af2db4fe670851a793713b1a3063bca2dee85aa415a SHA512 e3433a44d39cd54e20abd377c5722e7157e948cfde9176cabbe5f2a63999927ef2d9e94f1eb33da6276d6fac462fad8caa5991299483ae484aa15d9b96d9dc08 WHIRLPOOL 3b47b28685f2ffa48944bd87552a3f74282daa91444eb6a0eafb245df6292ec0f51365d76da7cde33b0d304e24ff52bd2439b1a2c150925ca6715c5f4b4af2d2 +DIST PyAVM-0.9.2.tar.gz 101071 SHA256 4bfc4bcb820d239b09d1f9c5a4cd1a3e0fc63af71d96f884a020cb7cc0c800fa SHA512 5e724d023ddd74ce64c3846fdb2e6310cbf8e2b9670e2bc28dd1b7978eae76f43f48a223d8e69f805aded41c569657c874d999bcb8198e0b8de7f02dbb51e7c1 WHIRLPOOL d7bc41a4cde21651ad2e278d10825c5b568d184be394f31066369a43970e9828d751272dcfc56ca6d42a9ed9be54f57502d2f27308203c52ff9de6ef65c4ab7c diff --git a/dev-python/pyavm/files/pyavm-0.9.2-deprecated-fromstring.patch b/dev-python/pyavm/files/pyavm-0.9.2-deprecated-fromstring.patch new file mode 100644 index 000000000000..0e16177b887b --- /dev/null +++ b/dev-python/pyavm/files/pyavm-0.9.2-deprecated-fromstring.patch @@ -0,0 +1,15 @@ +Description: Exception: fromstring() has been removed. Now frombytes() is called instead. +Author: Josue Ortega <josueortega@debian.org.gt> +Last-Update: 2015-12-20 + +--- a/pyavm/tests/test_main.py ++++ b/pyavm/tests/test_main.py +@@ -46,7 +46,7 @@ + @pytest.mark.parametrize('filename', XML_FILES_WCS) + def test_to_wcs_target_image(filename, tmpdir): + from PIL import Image +- image = Image.fromstring(data=b"1111", size=(2,2), mode="L") ++ image = Image.frombytes(data=b"1111", size=(2,2), mode="L") + image_file = tmpdir.join('test.png').strpath + image.save(image_file) + image.close() diff --git a/dev-python/pyavm/pyavm-0.9.2.ebuild b/dev-python/pyavm/pyavm-0.9.2.ebuild new file mode 100644 index 000000000000..1b1c915765ed --- /dev/null +++ b/dev-python/pyavm/pyavm-0.9.2.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_4,3_5} ) + +inherit distutils-r1 + +MYPN=PyAVM +MYP=${MYPN}-${PV} + +DESCRIPTION="Python module for Astronomy Visualization Metadata i/o" +HOMEPAGE="http://astrofrog.github.io/pyavm/" +SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND=" + >=dev-python/astropy-0.2[${PYTHON_USEDEP}]" + +DEPEND=" + test? ( + >=dev-python/astropy-0.2[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MYP}" + +PATCHES=( "${FILESDIR}/${P}-deprecated-fromstring.patch" ) + +python_test() { + py.test || die "tests for ${EPYTHON} failed" +} |