commit:     12d5b273b19539edf002926d85ca21922e83180a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri May 19 13:42:41 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri May 19 13:43:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12d5b273

dev-python/flask-login: Fix test compatibility with werkzeug-2.3

Pull-Request: https://github.com/maxcountryman/flask-login/pull/743
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/flask-login/Manifest                    |  1 +
 dev-python/flask-login/flask-login-0.6.2-r1.ebuild | 48 ++++++++++++++++++++++
 2 files changed, 49 insertions(+)

diff --git a/dev-python/flask-login/Manifest b/dev-python/flask-login/Manifest
index 6f685dd2eecc..36fbb9a682e8 100644
--- a/dev-python/flask-login/Manifest
+++ b/dev-python/flask-login/Manifest
@@ -1 +1,2 @@
+DIST flask-login-0.6.2-werkzeug-2.3.patch 7954 BLAKE2B 
4f732dbaa6bdbc8827f52eb9c1d046f2128908df316a1ca94b11ce8033fa8fa506ae41255b8f0e32bc91feae8874b995c2f46d2b7f4fbc5f9020748c5be1db23
 SHA512 
911fb67e96006073af1df6cf39b4be6eac4aaee63bdcab8d7191b097acb441fd984b3929200db6c0f1f329a65df33acaffc08e88409010fa40f0a787dc47c427
 DIST flask-login-0.6.2.gh.tar.gz 48195 BLAKE2B 
74d980f9900d9c583e03caa704cf637c5c6dac6a26e74bc008f47c18213764bafef16e33d9d28eee588b3c2f7d2a5895eae88e5adf755fe0448f7e74d5c65e74
 SHA512 
b286272ad5f7de2cfc913bee4a3eac46e4c1ce274bb12467009e1abae422f1a855aa49fd898778b8a2e937eebe9fbb387af11815267a2bc120cde943939111ec

diff --git a/dev-python/flask-login/flask-login-0.6.2-r1.ebuild 
b/dev-python/flask-login/flask-login-0.6.2-r1.ebuild
new file mode 100644
index 000000000000..413c07e8cab5
--- /dev/null
+++ b/dev-python/flask-login/flask-login-0.6.2-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2023 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="Login session support for Flask"
+HOMEPAGE="
+       https://github.com/maxcountryman/flask-login/
+       https://pypi.org/project/Flask-Login/
+"
+SRC_URI="
+       https://github.com/maxcountryman/flask-login/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+       https://github.com/maxcountryman/flask-login/pull/743.patch
+               -> ${P}-werkzeug-2.3.patch
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+       >=dev-python/flask-1.0.4[${PYTHON_USEDEP}]
+       >=dev-python/werkzeug-2.3.0[${PYTHON_USEDEP}]
+"
+DEPEND="
+       test? (
+               dev-python/asgiref[${PYTHON_USEDEP}]
+               dev-python/blinker[${PYTHON_USEDEP}]
+               dev-python/semantic_version[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_sphinx docs
+distutils_enable_tests pytest
+
+PATCHES=(
+       "${DISTDIR}/${P}-werkzeug-2.3.patch"
+)
+
+python_test() {
+       epytest -p no:httpbin
+}

Reply via email to