dev-python/sqlmodel - 0.0.47 (parona-overlay)

Search

Install

Install this version:

emerge -a =dev-python/sqlmodel-0.0.47

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/sqlmodel-0.0.47

Or alternatively:

emerge --autounmask-write -a =dev-python/sqlmodel-0.0.47

Package Information

Description:
SQL databases in Python, designed for simplicity, compatibility, and robustness
Homepage:
https://sqlmodel.tiangolo.com/ https://github.com/fastapi/sqlmodel/ https://pypi.org/project/sqlmodel/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.0.47 8 ~amd64 0
View Raw Ebuild
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=pdm-backend
PYTHON_COMPAT=( python3_{12..15} )

inherit distutils-r1 pypi

DESCRIPTION="SQL databases in Python, designed for simplicity, compatibility, and robustness"
HOMEPAGE="
	https://sqlmodel.tiangolo.com/
	https://github.com/fastapi/sqlmodel/
	https://pypi.org/project/sqlmodel/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	>=dev-python/pydantic-2.11.0[${PYTHON_USEDEP}]
	<dev-python/sqlalchemy-2.1.0[${PYTHON_USEDEP}]
	>=dev-python/sqlalchemy-2.0.14[${PYTHON_USEDEP}]
	>=dev-python/typing-extensions-4.5.0[${PYTHON_USEDEP}]
"
BDEPEND="
	test? (
		>=dev-python/alembic-1.12.0[${PYTHON_USEDEP}]
		>=dev-python/dirty-equals-0.11[${PYTHON_USEDEP}]
		>=dev-python/fastapi-0.128.0[${PYTHON_USEDEP}]
		>=dev-python/httpx-0.28.1[${PYTHON_USEDEP}]
		>=dev-python/jinja2-3.1.6[${PYTHON_USEDEP}]
		>=dev-python/psycopg-3.2.10:0[${PYTHON_USEDEP}]
		>=dev-python/pymysql-1.1.1[${PYTHON_USEDEP}]
		>=dev-python/typer-0.26.1[${PYTHON_USEDEP}]
	)
"

EPYTEST_PLUGINS=()
distutils_enable_tests pytest

EPYTEST_DESELECT=(
	# Uses coverage
	# TIP: Search for subprocess.run([coverage])
	"tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_py310_tests_main.py::test_run_tests"
	"tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_py39_tests_main.py::test_run_tests"
	"tests/test_tutorial/test_fastapi/test_app_testing/test_tutorial001_tests_main.py::test_run_tests"
	# Updates files
	"tests/test_select_gen.py::test_select_gen"
)

EPYTEST_IGNORE=(
	# Uses coverage
	# TIP: Search for imports of coverage_run
	"tests/test_tutorial/test_create_db_and_table/test_tutorial001.py"
	"tests/test_tutorial/test_create_db_and_table/test_tutorial001_py310.py"
)

python_test() {
	epytest tests
}

Inherited Eclasses

Dependencies

RDEPEND

	>=dev-python/pydantic-2.11.0[]
	<dev-python/sqlalchemy-2.1.0[]
	>=dev-python/sqlalchemy-2.0.14[]
	>=dev-python/typing-extensions-4.5.0[]

BDEPEND

	test? (
		>=dev-python/alembic-1.12.0[]
		>=dev-python/dirty-equals-0.11[]
		>=dev-python/fastapi-0.128.0[]
		>=dev-python/httpx-0.28.1[]
		>=dev-python/jinja2-3.1.6[]
		>=dev-python/psycopg-3.2.10:0[]
		>=dev-python/pymysql-1.1.1[]
		>=dev-python/typer-0.26.1[]
	)