From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-python/pyjwt/Manifest | 3 +++ dev-python/pyjwt/metadata.xml | 12 +++++++++ dev-python/pyjwt/pyjwt-1.5.3.ebuild | 50 +++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 dev-python/pyjwt/Manifest create mode 100644 dev-python/pyjwt/metadata.xml create mode 100644 dev-python/pyjwt/pyjwt-1.5.3.ebuild (limited to 'dev-python/pyjwt') diff --git a/dev-python/pyjwt/Manifest b/dev-python/pyjwt/Manifest new file mode 100644 index 000000000000..2b96de0c201b --- /dev/null +++ b/dev-python/pyjwt/Manifest @@ -0,0 +1,3 @@ +DIST PyJWT-1.5.3.tar.gz 73044 BLAKE2B ae2e3caec52ddd768d573e0398bbc355c6eedca238db9b1808ff1d723b9fdee0845cf119d78e561833fe770e5ec39000905cec43a5e96102865f60e204c72c22 SHA512 b25a9f6a04bd072020fcf00bb559b7560902adb79746fb880432c01fa356748238432f53f6b9a21db50ece3e59ed4c45ca3f48ecec0ca3c4095e6a739a5c150c +EBUILD pyjwt-1.5.3.ebuild 1265 BLAKE2B b0288608cf84527d858af2f5313198807cf7fe6189a9d7e0c20335adc8aab0566ff8c4c11f12677f5a37ad02841e3fe6e27438be115720c40f015e3826622efd SHA512 f560fc4f5764cb250e5e055df542ee1d518bc15737cd6304720db3500a78a971bd3fb0a3005d0b2c3307485f6df5154f40875467512be0f03ab8932b36c12327 +MISC metadata.xml 374 BLAKE2B 29e7fb2995367400d4f8d836cda63346441ff6008ac4554cd06859827d92924d3c34f2fb9763291766014a364d1e02af1ae6412fb02d316c775c3c0c13dcb22e SHA512 87a019a49c2e355d19148214f8ac7212758f7a36f77e7b959d32df1146c145b764f93707fd7b45a8c5276209a66380c888670181bf78bc4d241d5a7294a032b4 diff --git a/dev-python/pyjwt/metadata.xml b/dev-python/pyjwt/metadata.xml new file mode 100644 index 000000000000..d0f901f262dd --- /dev/null +++ b/dev-python/pyjwt/metadata.xml @@ -0,0 +1,12 @@ + + + + + python@gentoo.org + Python + + + PyJWT + progrium/pyjwt + + diff --git a/dev-python/pyjwt/pyjwt-1.5.3.ebuild b/dev-python/pyjwt/pyjwt-1.5.3.ebuild new file mode 100644 index 000000000000..ae1f2157dead --- /dev/null +++ b/dev-python/pyjwt/pyjwt-1.5.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy ) + +inherit distutils-r1 eutils + +MY_PN="PyJWT" + +DESCRIPTION="JSON Web Token implementation in Python" +HOMEPAGE="https://github.com/progrium/pyjwt https://pypi.org/project/PyJWT/" +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" + +LICENSE=" MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 x86" +IUSE="test" + +RDEPEND="" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + >=dev-python/cryptography-1.4.0[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/pytest-cov[${PYTHON_USEDEP}] + dev-python/pytest-runner[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}"/${MY_PN}-${PV} + +python_prepare_all() { + find . -name '__pycache__' -prune -exec rm -rf {} \; || die "Cleaning __pycache__ failed" + find . -name '*.pyc' -exec rm -f {} \; || die "Cleaing *.pyc failed" + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +} + +pkg_postinst() { + elog "Available optional features:" + optfeature "cryptography" dev-python/cryptography + optfeature "flake8" dev-python/flake8 + + ewarn "flake8 feature requires 'flake8-import-order' and 'pep8-naming', which are not in portage yet" +} -- cgit v1.2.3