dev-python/pymacaroons: nose to pytest & py3.11 support

This revision bump applies patch which backports parts of the upstream
PR #59 related to nose to pytest transition.

Additionally:
- py3.11 support is enabled
- update DESCRIPTION

Upstream-PR: https://github.com/ecordell/pymacaroons/pull/59
Co-authored-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/28022
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Petr Vaněk
2022-10-29 16:35:43 +02:00
committed by Michał Górny
parent 822c65ec7d
commit d5024db188
2 changed files with 50 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST pymacaroons-0.13.0-nose-to-pytest.patch 18750 BLAKE2B 36e884b77fa5d540f5c849a6dead98ad30a41b04a512d85843ffc7f18f85660a0520e6b17dd55f48c0ac1c0f98f86c0ea9751942a0592d2e64698aa9d9a65131 SHA512 36a582ad8395eb114a164d027b0d73cb6dfc10230538c0f7c3beb9b9afca26cd9a4964cd3f12cb144fd7e63acc0f7ce19760a9ad75be1f5a9a37ccc350462056
DIST pymacaroons-0.13.0.gh.tar.gz 25607 BLAKE2B ff21e88842c54f7ce84e8b3ad59d42ee43f2bb2073ebbb7f47dee123086c1466024420246a4da2eae462bc36e44a3621b75144846e090073c5063b0af24f1ad1 SHA512 60da7e03d68083f8effdc06b338dd04dbd6a39ff137373721af09f1282fb035f969459d2ef80f4d728dcf95f6244b7b2de443e48658e0551462ab46daf3884a2

View File

@@ -0,0 +1,49 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="A Python implementation of Macaroons"
HOMEPAGE="
https://github.com/ecordell/pymacaroons
https://pypi.org/project/pymacaroons/
"
SRC_URI="
https://github.com/ecordell/pymacaroons/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
https://github.com/arkamar/pymacaroons/commit/backport-upstream-pr59.patch
-> ${P}-nose-to-pytest.patch
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc64"
RDEPEND="
dev-python/pynacl[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
)
"
PATCHES=(
# The patch is backported from upstream PR #59 to v0.13.0 and stored in my
# fork, see SRC_URI.
"${DISTDIR}/${P}-nose-to-pytest.patch"
)
EPYTEST_IGNORE=(
# The package also contains property_tests, however, they are incompatible
# with dev-python/hypothesis in gentoo. The package requires too old version.
tests/property_tests
)
distutils_enable_tests pytest