gentoo/dev-python/pymongo-auth-aws/pymongo-auth-aws-1.3.0.ebuild

42 lines
903 B
Bash
Raw Normal View History

2024-06-22 00:59:06 +02:00
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{10..13} )
2024-06-22 00:59:06 +02:00
inherit distutils-r1 pypi
DESCRIPTION="MONGODB-AWS authentication support for PyMongo"
HOMEPAGE="
https://github.com/mongodb/pymongo-auth-aws
https://pypi.org/project/pymongo-auth-aws
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
2024-06-22 00:59:06 +02:00
2024-06-23 17:46:45 +02:00
# Requires AWS credentials
RESTRICT="test"
2024-06-22 00:59:06 +02:00
RDEPEND="
dev-python/boto3[${PYTHON_USEDEP}]
dev-python/botocore[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
<dev-python/dnspython-3.0.0[${PYTHON_USEDEP}]
dev-python/pymongo[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
# we do not want hatch-requirements-txt and its ton of NIH deps
sed -i -e '/requirements/d' pyproject.toml || die
}