Skip to content

Instantly share code, notes, and snippets.

@envolution
Created March 26, 2025 17:48
Show Gist options
  • Save envolution/5c7f61a7cb1713ed945ae9617b090a94 to your computer and use it in GitHub Desktop.
Save envolution/5c7f61a7cb1713ed945ae9617b090a94 to your computer and use it in GitHub Desktop.
# Maintainer: Victor Lavaud <[email protected]>
pkgname=python-google-generativeai
pkgver=0.8.4
pkgrel=2
pkgdesc="(deprecated) Google AI Python SDK for the Gemini API"
arch=('any')
url="https://github.com/google-gemini/generative-ai-python"
license=('Apache-2.0')
makedepends=('python-setuptools')
source=("generative-ai-${pkgver}.tar.gz::https://github.com/google-gemini/generative-ai-python/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('82d31235919b6e1089870dc2b07808e64d12d35f0a19a4ae5e974241412825fb')
# Dependencies listed in https://github.com/google-gemini/generative-ai-python/blob/main/setup.py#L44-L53
depends=('python-google-ai-generativelanguage=0.6.10' 'python-google-api-core' 'python-google-api-python-client' 'python-google-auth>=2.15.0' 'python-protobuf' 'python-pydantic' 'python-tqdm' 'python-typing_extensions')
build() {
cd "deprecated-generative-ai-python-${pkgver}"
python setup.py build
}
package() {
cd "deprecated-generative-ai-python-${pkgver}"
python setup.py install --skip-build --root="${pkgdir}" --optimize=1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment