diff options
author | Petr Vaněk <arkamar@atlas.cz> | 2022-10-29 16:35:43 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-10-29 23:01:26 +0200 |
commit | d5024db1886a2f34a90cbfe5ff1c525b4ace54a1 (patch) | |
tree | 125897b82da24a83420313f63d4718678eea3e6c /dev-python/pymacaroons | |
parent | media-libs/exempi: add arm build patch (diff) | |
download | gentoo-d5024db1886a2f34a90cbfe5ff1c525b4ace54a1.tar.gz gentoo-d5024db1886a2f34a90cbfe5ff1c525b4ace54a1.tar.bz2 gentoo-d5024db1886a2f34a90cbfe5ff1c525b4ace54a1.zip |
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>
Diffstat (limited to 'dev-python/pymacaroons')
-rw-r--r-- | dev-python/pymacaroons/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pymacaroons/pymacaroons-0.13.0-r1.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/pymacaroons/Manifest b/dev-python/pymacaroons/Manifest index 6aab45d7ecae..b043635a70ff 100644 --- a/dev-python/pymacaroons/Manifest +++ b/dev-python/pymacaroons/Manifest @@ -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 diff --git a/dev-python/pymacaroons/pymacaroons-0.13.0-r1.ebuild b/dev-python/pymacaroons/pymacaroons-0.13.0-r1.ebuild new file mode 100644 index 000000000000..b0bc4372dffe --- /dev/null +++ b/dev-python/pymacaroons/pymacaroons-0.13.0-r1.ebuild @@ -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 |