Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pysaml2/
Date: Mon, 21 Jan 2019 08:49:14
Message-Id: 1548060531.5753e2cddfd46760faa3ae5d93aaa450824dd6bc.prometheanfire@gentoo
1 commit: 5753e2cddfd46760faa3ae5d93aaa450824dd6bc
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 21 08:48:51 2019 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 21 08:48:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5753e2cd
7
8 dev-python/pysaml2: fix setup.config metadata
9
10 Fixes: https://bugs.gentoo.org/675824
11 Package-Manager: Portage-2.3.51, Repoman-2.3.12
12 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
13
14 dev-python/pysaml2/pysaml2-4.6.3-r1.ebuild | 40 ++++++++++++++++++++++++++++++
15 1 file changed, 40 insertions(+)
16
17 diff --git a/dev-python/pysaml2/pysaml2-4.6.3-r1.ebuild b/dev-python/pysaml2/pysaml2-4.6.3-r1.ebuild
18 new file mode 100644
19 index 00000000000..141820786e1
20 --- /dev/null
21 +++ b/dev-python/pysaml2/pysaml2-4.6.3-r1.ebuild
22 @@ -0,0 +1,40 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Python implementation of SAML Version 2 to be used in a WSGI environment"
32 +HOMEPAGE="https://github.com/rohe/pysaml2"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="Apache-2.0"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm64 ~x86"
38 +IUSE=""
39 +
40 +PATCHES=(
41 +)
42 +
43 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
44 +RDEPEND=">=dev-python/cryptography-1.4[${PYTHON_USEDEP}]
45 + dev-python/defusedxml[${PYTHON_USEDEP}]
46 + dev-python/future[${PYTHON_USEDEP}]
47 + dev-python/pyopenssl[${PYTHON_USEDEP}]
48 + dev-python/python-dateutil[${PYTHON_USEDEP}]
49 + dev-python/pytz[${PYTHON_USEDEP}]
50 + >=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
51 + dev-python/six[${PYTHON_USEDEP}]"
52 +
53 +python_prepare_all() {
54 + # Work-around for bug 675824
55 + # With older setuptools, version = file:... is not supported, see Note 1 in:
56 + # https://setuptools.readthedocs.io/en/latest/setuptools.html#metadata
57 + # In such cases, hardcode the version
58 + has_version ">=dev-python/setuptools-39.2.0" || \
59 + sed --in-place "s/^version = file:.*\$/version = ${PV}/" setup.cfg
60 + ##
61 + distutils-r1_python_prepare_all
62 +}