1 |
commit: 544a9136b11cd824288c6d87f94c9cff34d53681 |
2 |
Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com> |
3 |
AuthorDate: Fri Oct 9 22:11:01 2020 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 9 23:08:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=544a9136 |
7 |
|
8 |
dev-python/python-ldap-3.3.1: Version bump |
9 |
|
10 |
Copyright: Sony Interactive Entertainment Inc. |
11 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
12 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
13 |
|
14 |
dev-python/python-ldap/Manifest | 1 + |
15 |
dev-python/python-ldap/python-ldap-3.3.1.ebuild | 91 +++++++++++++++++++++++++ |
16 |
2 files changed, 92 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/python-ldap/Manifest b/dev-python/python-ldap/Manifest |
19 |
index 055f928ceea..afc7c4fd616 100644 |
20 |
--- a/dev-python/python-ldap/Manifest |
21 |
+++ b/dev-python/python-ldap/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST python-ldap-3.2.0.tar.gz 367645 BLAKE2B 5109f4a13644d53fff7506ad2417da6dbfd5d1c5d31cc63932338ee0bc7327b00878804764366523fc0610191126c1a1367e15fddbad481880f73d29d96d3322 SHA512 ef2833739fd57ad26d97ae5dba3bca8a47e770ff3f113d06a5bed0841f8fcbbe6cd102e75c753dfff48f5f6041f46a91c6166f3bb9ca44ef9bd643c0666c6b23 |
24 |
+DIST python-ldap-3.3.1.tar.gz 379810 BLAKE2B bb5d4902211b70cc57d2967134d3c41768bfedbec40be0d5bb592b96523f408952ca7e9a18546cc24f8267e958f454d56d97952092bc46e02bc9954bced9ba00 SHA512 2a1222bf5bbc1d885611fc4f2a25d0b1b64b49ae379f1212f1b3b70fc12fdc547eb6c4af4060a20bf082547b7df8f1824bb1fdfafa37ab21acf2f1e231c4d2d1 |
25 |
|
26 |
diff --git a/dev-python/python-ldap/python-ldap-3.3.1.ebuild b/dev-python/python-ldap/python-ldap-3.3.1.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..7d0e119b94b |
29 |
--- /dev/null |
30 |
+++ b/dev-python/python-ldap/python-ldap-3.3.1.ebuild |
31 |
@@ -0,0 +1,91 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+PYTHON_COMPAT=( pypy3 python3_{6,7,8} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Various LDAP-related Python modules" |
41 |
+HOMEPAGE="https://www.python-ldap.org/en/latest/ |
42 |
+ https://pypi.org/project/python-ldap/ |
43 |
+ https://github.com/python-ldap/python-ldap" |
44 |
+if [[ ${PV} == *9999* ]]; then |
45 |
+ EGIT_REPO_URI="https://github.com/python-ldap/python-ldap.git" |
46 |
+ inherit git-r3 |
47 |
+else |
48 |
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
49 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-solaris" |
50 |
+fi |
51 |
+ |
52 |
+LICENSE="PSF-2" |
53 |
+SLOT="0" |
54 |
+IUSE="examples sasl ssl" |
55 |
+ |
56 |
+# We do not need OpenSSL, it is never directly used: |
57 |
+# https://github.com/python-ldap/python-ldap/issues/224 |
58 |
+RDEPEND=" |
59 |
+ !dev-python/pyldap |
60 |
+ >=dev-python/pyasn1-0.3.7[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/pyasn1-modules-0.1.5[${PYTHON_USEDEP}] |
62 |
+ >net-nds/openldap-2.4.11:=[sasl?,ssl?] |
63 |
+" |
64 |
+# We do not link against cyrus-sasl but we use some |
65 |
+# of its headers during the build. |
66 |
+BDEPEND=" |
67 |
+ >net-nds/openldap-2.4.11:=[sasl?,ssl?] |
68 |
+ sasl? ( >=dev-libs/cyrus-sasl-2.1 ) |
69 |
+" |
70 |
+ |
71 |
+distutils_enable_tests pytest |
72 |
+distutils_enable_sphinx Doc |
73 |
+ |
74 |
+python_prepare_all() { |
75 |
+ # The live ebuild won't compile if setuptools_scm < 1.16.2 is installed |
76 |
+ # https://github.com/pypa/setuptools_scm/issues/228 |
77 |
+ if [[ ${PV} == *9999* ]]; then |
78 |
+ rm -r .git || die |
79 |
+ fi |
80 |
+ |
81 |
+ if ! use sasl; then |
82 |
+ sed -i 's/HAVE_SASL//g' setup.cfg || die |
83 |
+ fi |
84 |
+ if ! use ssl; then |
85 |
+ sed -i 's/HAVE_TLS//g' setup.cfg || die |
86 |
+ fi |
87 |
+ |
88 |
+ distutils-r1_python_prepare_all |
89 |
+} |
90 |
+ |
91 |
+python_test() { |
92 |
+ # Run all tests which don't require slapd |
93 |
+ local ignored_tests=( |
94 |
+ t_bind.py |
95 |
+ t_cext.py |
96 |
+ t_edit.py |
97 |
+ t_ldapobject.py |
98 |
+ t_ldap_options.py |
99 |
+ t_ldap_sasl.py |
100 |
+ t_ldap_schema_subentry.py |
101 |
+ t_ldap_syncrepl.py |
102 |
+ t_slapdobject.py |
103 |
+ ) |
104 |
+ pushd Tests >/dev/null || die |
105 |
+ pytest -vv ${ignored_tests[@]/#/--ignore } \ |
106 |
+ || die "tests failed with ${EPYTHON}" |
107 |
+ popd > /dev/null || die |
108 |
+} |
109 |
+ |
110 |
+python_install() { |
111 |
+ distutils-r1_python_install |
112 |
+ python_optimize |
113 |
+} |
114 |
+ |
115 |
+python_install_all() { |
116 |
+ if use examples; then |
117 |
+ docinto examples |
118 |
+ dodoc -r Demo/. |
119 |
+ docompress -x /usr/share/doc/${PF}/examples |
120 |
+ fi |
121 |
+ distutils-r1_python_install_all |
122 |
+} |