1 |
commit: 9822615334e3f0ba555a0c4c9185537ff833001f |
2 |
Author: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 10 12:02:26 2016 +0000 |
4 |
Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 10 12:02:26 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/dev/dev-zero.git/commit/?id=98226153 |
7 |
|
8 |
dev-python/pyjwt: version bump |
9 |
|
10 |
dev-python/pyjwt/Manifest | 1 + |
11 |
dev-python/pyjwt/pyjwt-1.4.2.ebuild | 55 +++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 56 insertions(+) |
13 |
|
14 |
diff --git a/dev-python/pyjwt/Manifest b/dev-python/pyjwt/Manifest |
15 |
new file mode 100644 |
16 |
index 0000000..a0d04d3 |
17 |
--- /dev/null |
18 |
+++ b/dev-python/pyjwt/Manifest |
19 |
@@ -0,0 +1 @@ |
20 |
+DIST PyJWT-1.4.2.tar.gz 30486 SHA256 87a831b7a3bfa8351511961469ed0462a769724d4da48a501cb8c96d1e17f570 SHA512 b0387d49fd1d06a8a846c2083160f6fd458c927ffac291fa9b4edbb1ce93d6bcc23e0d5528010aa919d67e1a78b0ce830b711802d6af1d20a1ce4e511bf6b007 WHIRLPOOL 3c2b7fb5c2701f7049d8f36974eddf520a6f21697d37e92a68434b36c1b6fc90c5304acb523f9c740bc0e33426b238ecfd6fe1c52859320254cae4b40c203196 |
21 |
|
22 |
diff --git a/dev-python/pyjwt/pyjwt-1.4.2.ebuild b/dev-python/pyjwt/pyjwt-1.4.2.ebuild |
23 |
new file mode 100644 |
24 |
index 0000000..e6cef3e |
25 |
--- /dev/null |
26 |
+++ b/dev-python/pyjwt/pyjwt-1.4.2.ebuild |
27 |
@@ -0,0 +1,55 @@ |
28 |
+# Copyright 1999-2016 Gentoo Foundation |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+# $Id$ |
31 |
+ |
32 |
+EAPI=5 |
33 |
+ |
34 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} pypy ) |
35 |
+ |
36 |
+inherit distutils-r1 eutils |
37 |
+ |
38 |
+MY_PN="PyJWT" |
39 |
+ |
40 |
+DESCRIPTION="JSON Web Token implementation in Python" |
41 |
+HOMEPAGE="https://github.com/progrium/pyjwt https://pypi.python.org/pypi/PyJWT/" |
42 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
43 |
+ |
44 |
+LICENSE=" MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
47 |
+IUSE="test" |
48 |
+ |
49 |
+RDEPEND="" |
50 |
+DEPEND=" |
51 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
52 |
+ dev-python/pytest-runner[${PYTHON_USEDEP}] |
53 |
+ test? ( |
54 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
55 |
+ dev-python/pytest-cov[${PYTHON_USEDEP}] |
56 |
+ )" |
57 |
+ |
58 |
+S="${WORKDIR}"/${MY_PN}-${PV} |
59 |
+ |
60 |
+python_prepare_all() { |
61 |
+ find . -name '__pycache__' -prune -exec rm -rf {} \; || die "Cleaning __pycache__ failed" |
62 |
+ find . -name '*.pyc' -exec rm -f {} \; || die "Cleaing *.pyc failed" |
63 |
+ |
64 |
+ # drop requirement on explicit py.test version |
65 |
+ sed -i \ |
66 |
+ -s 's|==2.7.3||' \ |
67 |
+ setup.py || die |
68 |
+ |
69 |
+ distutils-r1_python_prepare_all |
70 |
+} |
71 |
+ |
72 |
+python_test() { |
73 |
+ esetup.py test |
74 |
+} |
75 |
+ |
76 |
+pkg_postinst() { |
77 |
+ elog "Available optional features:" |
78 |
+ optfeature "cryptography" dev-python/cryptography |
79 |
+ optfeature "flake8" dev-python/flake8 |
80 |
+ |
81 |
+ ewarn "flake8 feature requires 'flake8-import-order' and 'pep8-naming', which are not in portage yet" |
82 |
+} |