diff options
-rw-r--r-- | dev-python/flask-migrate/Manifest | 1 | ||||
-rw-r--r-- | dev-python/flask-migrate/flask-migrate-4.0.5.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/flask-migrate/Manifest b/dev-python/flask-migrate/Manifest index 3a41bb9ee078..4b9d15cdba7e 100644 --- a/dev-python/flask-migrate/Manifest +++ b/dev-python/flask-migrate/Manifest @@ -1 +1,2 @@ DIST Flask-Migrate-4.0.4.gh.tar.gz 26635 BLAKE2B 2edb3143332439b3dfddba2ee09661bf93771e5747b729e90af27c80e22ea4f9e8f13a04a3676e72514e94113128113a73cc804ff641d587419376ace453bb78 SHA512 66d7a96aafe81e94b59f3e510036dda82047c53a9bf67654ee5fe77ee30361f516a36000648f58de2743e1fa288302be76a82601a1eeae65f0acb8fd486fa9c1 +DIST Flask-Migrate-4.0.5.gh.tar.gz 26827 BLAKE2B 4b674856bc1177857b1272740351e953099a22f981faf63714ac07748308c77a599ce942e273858df2b0e010a4b962e8c8c9488c3bb750f5c4e9037e4a0c58bf SHA512 cdc02e3f567119604e56e9cafed3e7b40e7335d4c3f42cffb26515a4cec12ff34c16f8d5ae036d841cf846985973980d820cdc5d87a99ebf634b3b17becaeb69 diff --git a/dev-python/flask-migrate/flask-migrate-4.0.5.ebuild b/dev-python/flask-migrate/flask-migrate-4.0.5.ebuild new file mode 100644 index 000000000000..d76257833461 --- /dev/null +++ b/dev-python/flask-migrate/flask-migrate-4.0.5.ebuild @@ -0,0 +1,46 @@ +# 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_{10..12} ) + +inherit distutils-r1 + +MY_P="Flask-Migrate-${PV}" +DESCRIPTION="SQLAlchemy database migrations for Flask applications using Alembic" +HOMEPAGE=" + https://github.com/miguelgrinberg/Flask-Migrate/ + https://pypi.org/project/Flask-Migrate/ +" +SRC_URI=" + https://github.com/miguelgrinberg/Flask-Migrate/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/alembic-1.9.0[${PYTHON_USEDEP}] + >=dev-python/flask-0.9[${PYTHON_USEDEP}] + >=dev-python/flask-sqlalchemy-1.0[${PYTHON_USEDEP}] +" + +distutils_enable_tests unittest + +python_test() { + local -x PATH=${T}/bin:${PATH} + + mkdir -p "${T}"/bin || die + cat > "${T}"/bin/flask <<-EOF || die + #!/bin/sh + exec ${EPYTHON} -m flask "\${@}" + EOF + chmod +x "${T}"/bin/flask || die + + eunittest +} |