mongomock-motor-0.0.36nest
download
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{12,13} )
inherit distutils-r1
MY_PN="${PN/-/_}"
DESCRIPTION="Library for mocking AsyncIOMotorClient built on top of mongomock"
HOMEPAGE="https://github.com/michaelkryukov/mongomock_motor"
SRC_URI="https://github.com/michaelkryukov/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="dev-python/mongomock[${PYTHON_USEDEP}]
dev-python/motor[${PYTHON_USEDEP}]"
BDEPEND="test? ( dev-python/beanie[${PYTHON_USEDEP}]
dev-python/mongo-thingy[${PYTHON_USEDEP}]
dev-python/umongo[${PYTHON_USEDEP}] )"
EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# AttributeError
tests/test_beanie.py::test_beanie
# TypeError
tests/test_beanie.py::test_beanie_links
)