bardapi: new package

This commit is contained in:
Anton Bolshakov 2023-07-13 23:28:15 +08:00
parent 4c0a8d190c
commit b76ac39a8f
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
8 changed files with 140 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST bardapi-0.1.24.tar.gz 17595 BLAKE2B 0516cde5c8673141ae339a8b84d6a73897fabcaabd63b4b308d651348687326447d9bd7f85deb337ff22c413a47c02af7fd794f488070ade10ee6aa51a1af2bd SHA512 eaad183e1b8658290244e44e8ca801b4bd59aba80b90154990f7acfc4342bf3d44c17e2b0fbbe7668247bfc0b8d96611a61f254700174844de17e07ba1dde5f0

View file

@ -0,0 +1,31 @@
# 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..11} )
inherit distutils-r1 pypi
DESCRIPTION=""
HOMEPAGE=""
LICENSE=""
SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86"
IUSE="test"
RDEPEND="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/deep-translator[${PYTHON_USEDEP}]
dev-python/colorama[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/google-cloud-translate[${PYTHON_USEDEP}]
"
#httpx[http2,[${PYTHON_USEDEP}]]
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
distutils_enable_tests pytest

View file

@ -0,0 +1 @@
DIST deep_translator-1.11.4.tar.gz 36043 BLAKE2B 71e591305b0a1553fedabfc8455edc63ab5aa0b4adcfe0d52b1675da7cc39d796ea990b3732af9e944f94acafb0dad450adff2d9bcd558ceb39ab7d916957d00 SHA512 fb680d940374eb4585b6f27a414f47a04e87dfd2a6df9922ebcf7097e0470b35913883ba132f2b897d95cd4cba2aeb4f24e28c2887e1f36c05678fba1793a704

View file

@ -0,0 +1,29 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 pypi
DESCRIPTION="A tool to translate between different languages"
HOMEPAGE="https://github.com/nidhaloff/deep-translator"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86"
IUSE="docx pypdf openai"
RDEPEND="
>=dev-python/beautifulsoup4-4.9.1[${PYTHON_USEDEP}]
>=dev-python/requests-2.23.0[${PYTHON_USEDEP}]
docx? ( app-text/docx2txt )
pypdf? ( dev-python/pypdf[${PYTHON_USEDEP}] )
openai? ( dev-python/openai[${PYTHON_USEDEP}] )
"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

View file

@ -0,0 +1 @@
DIST python-cloud-core-2.3.0.tar.gz 69387 BLAKE2B ea2a574a5f2f9125d31de65f6c3fdcb4ccd93e17241cfc500be7c3812230af9e53cb073919c4db85f694f8fab86110a5adc8d94b2bcf479cc13f88dcb5ba182e SHA512 e9fb110269de55d5e67ca4dc23cc5c1e3be743ddd9beca878ab32734eec45fefcaaf5c7b6ac960a9d44623b040332132bb60f5a9abafee1eefcdb33603a54b12

View file

@ -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_{10..11} )
inherit distutils-r1 optfeature
MY_PN="${PN//google/python}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Google Cloud API client core library"
HOMEPAGE="https://github.com/googleapis/python-cloud-core"
SRC_URI="https://github.com/googleapis/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~x86"
RDEPEND="dev-python/google-auth[${PYTHON_USEDEP}]
dev-python/google-api-core[${PYTHON_USEDEP}]
!dev-python/namespace-google"
BDEPEND="test? ( dev-python/grpcio[${PYTHON_USEDEP}] )"
S="${WORKDIR}/${MY_P}"
distutils_enable_tests pytest
python_compile() {
distutils-r1_python_compile
find "${BUILD_DIR}" -name '*.pth' -delete || die
}
src_test() {
rm -r google || die "rm failed"
distutils-r1_src_test
}
python_test() {
distutils_write_namespace google
epytest -v tests || die "tests failed with ${EPYTHON}"
}
pkg_postinst() {
optfeature "support grpc" dev-python/grpcio
}

View file

@ -0,0 +1 @@
DIST google-cloud-translate-3.11.1.tar.gz 136185 BLAKE2B 56ce40beeefbac230d159ca40c0dd37936c7e3f32967d6690ac7a0adc58bdf27acb6f91a40fc851a27151d031aefe2849f41a5cfb4de603a1d9f65b7c52cafd0 SHA512 663a1a3d2a6f351d7d3a12d3b37c17d60cf0101c6b364f9d86219c8577bb024a5991af8b49be00f6975274569eb96433ac64191057124520594f880d289242d2

View file

@ -0,0 +1,28 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYPI_NO_NORMALIZE=1
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1 pypi
DESCRIPTION="${PN}"
HOMEPAGE="https://pypi.org/project/${PN}"
LICENSE="GPL-3"
SLOT="0"
IUSE=""
RDEPEND="dev-python/google-cloud-core[${PYTHON_USEDEP}]
dev-python/proto-plus[${PYTHON_USEDEP}]
dev-python/protobuf-python[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
KEYWORDS="amd64 ~x86"
python_install_all() {
distutils-r1_python_install_all
find "${ED}" -name '*.pth' -delete || die
}