1 |
commit: 2ea8ba11b1f71da9b534bdd64e6183b26fc1c769 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 9 07:52:28 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 9 08:07:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ea8ba11 |
7 |
|
8 |
dev-python/pykerberos: Bump to 1.3.1 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pykerberos/Manifest | 1 + |
13 |
dev-python/pykerberos/pykerberos-1.3.1.ebuild | 44 +++++++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pykerberos/Manifest b/dev-python/pykerberos/Manifest |
17 |
index 9e987e39807..4269f7c5c3a 100644 |
18 |
--- a/dev-python/pykerberos/Manifest |
19 |
+++ b/dev-python/pykerberos/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST PyKerberos-1.3.0.tar.gz 41033 BLAKE2B 5805df2c258a75321dab5fe84fcbf1de706cb7c14a710c914ae4918dd39f79036a4f4033a068982778f73d9f00a4ca45b80e9cfc59c6a246a236f3c6931bacc5 SHA512 ed2644a236993d9737af43be951d57207fc787a74e82f343b265461b456923763610f1ce1b46d7d56f22d6452be1418b98707b8529b22fd8abf299143e52cf69 |
22 |
+DIST PyKerberos-1.3.1.tar.gz 41954 BLAKE2B b95a3473c5803ebcb461db7f2589caa03e92f4cb3ba3a4890a31db99b687aa4c77ae4e58f09ae2339a1fd8acf6fe9ab5797e3b7178dfeb2ee7a95bb851fff402 SHA512 dcadc5c3b095d8bba947a745ac84cc558d7eebad139a0e86260891966786506a7a62600fde93fa14683971e436da8cc5cd3795817b20ba45ce7e39f8c05deb53 |
23 |
|
24 |
diff --git a/dev-python/pykerberos/pykerberos-1.3.1.ebuild b/dev-python/pykerberos/pykerberos-1.3.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..3d38c51c870 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pykerberos/pykerberos-1.3.1.ebuild |
29 |
@@ -0,0 +1,44 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{6..9} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+MY_P=PyKerberos-${PV} |
39 |
+DESCRIPTION="A high-level Python wrapper for Kerberos/GSSAPI operations" |
40 |
+HOMEPAGE=" |
41 |
+ https://www.calendarserver.org/PyKerberos.html |
42 |
+ https://github.com/apple/ccs-pykerberos/ |
43 |
+ https://pypi.org/project/kerberos/" |
44 |
+SRC_URI=" |
45 |
+ https://github.com/apple/ccs-pykerberos/archive/${MY_P}.tar.gz" |
46 |
+S=${WORKDIR}/ccs-pykerberos-${MY_P} |
47 |
+ |
48 |
+LICENSE="Apache-2.0" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86" |
51 |
+# test environment is non-trivial to set up, so just use docker |
52 |
+# (see python_test below) |
53 |
+# also for alpha/beta Python releases support: |
54 |
+# https://github.com/apple/ccs-pykerberos/pull/83/commits/5f1130a1305b5f6e7d7d8b41067c4713f0c8950f |
55 |
+RESTRICT="test" |
56 |
+ |
57 |
+RDEPEND="app-crypt/mit-krb5" |
58 |
+DEPEND="${RDEPEND}" |
59 |
+ |
60 |
+python_test() { |
61 |
+ set -- docker run \ |
62 |
+ -v "${PWD}:/app" \ |
63 |
+ -w /app \ |
64 |
+ -e PYENV=$("${EPYTHON}" -c 'import sys; print(sys.version.split()[0])') \ |
65 |
+ -e KERBEROS_USERNAME=administrator \ |
66 |
+ -e KERBEROS_PASSWORD=Password01 \ |
67 |
+ -e KERBEROS_REALM=example.com \ |
68 |
+ -e KERBEROS_PORT=80 \ |
69 |
+ ubuntu:16.04 \ |
70 |
+ /bin/bash .travis.sh |
71 |
+ echo "${@}" >&2 |
72 |
+ "${@}" || die "Tests failed with ${EPYTHON}" |
73 |
+} |