py-earthengine-api: add v1.4.3 (#48340)

This commit is contained in:
Adam J. Stewart 2025-01-04 10:14:28 +01:00 committed by GitHub
parent de2be4d999
commit 173dcd6be8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,18 +10,27 @@ class PyEarthengineApi(PythonPackage):
using the Python programming language."""
homepage = "https://github.com/google/earthengine-api"
pypi = "earthengine-api/earthengine-api-0.1.186.tar.gz"
pypi = "earthengine-api/earthengine_api-1.4.3.tar.gz"
license("Apache-2.0")
maintainers("adamjstewart")
version("1.4.3", sha256="052b65d4dfc6cc474d70fb78946cd981aee4c52e6df6dfbbe17a9ac5124214d0")
version("0.1.344", sha256="bc5a270b8296aaae8574e68dfd93fe878bc5fbe77d1c41f90bcb5e5b830ca5c8")
depends_on("py-setuptools", type="build")
depends_on("py-google-cloud-storage", type=("build", "run"))
depends_on("py-google-api-python-client@1.12.1:", type=("build", "run"))
depends_on("py-google-api-python-client", type=("build", "run"))
depends_on("py-google-auth@1.4.1:", type=("build", "run"))
depends_on("py-google-auth-httplib2@0.0.3:", type=("build", "run"))
depends_on("py-httplib2@0.9.2:0", type=("build", "run"))
depends_on("py-requests", type=("build", "run"))
depends_on("google-cloud-cli", type="run")
def url_for_version(self, version):
url = "https://files.pythonhosted.org/packages/source/e/earthengine-api/{}-{}.tar.gz"
if version >= Version("0.1.399"):
name = "earthengine_api"
else:
name = "earthengine-api"
return url.format(name, version)