include $(TOPDIR)/rules.mk
PKG_NAME:=python-botocore
-PKG_VERSION:=1.31.7
+PKG_VERSION:=1.42.86
PKG_RELEASE:=1
PYPI_NAME:=botocore
-PKG_HASH:=f4473f66c153c262b8262404d737f4249366daf00fb068b495577a24b830ebcb
+PKG_HASH:=baa49e93b4c92d63e0c8288026ee1ef8de83f182743127cc9175504440a48e49
PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
PKG_LICENSE:=Apache-2.0
--- /dev/null
+#!/bin/sh
+
+[ "$1" = python3-botocore ] || exit 0
+
+python3 - << 'EOF'
+import botocore.session
+from botocore.stub import Stubber
+
+session = botocore.session.get_session()
+client = session.create_client("s3", region_name="us-east-1")
+
+# Verify endpoint URL is constructed correctly
+endpoint = client.meta.endpoint_url or "https://s3.amazonaws.com"
+assert "amazonaws" in endpoint or endpoint.startswith("https://")
+
+# Test stubber
+stubber = Stubber(client)
+stubber.add_response("list_buckets", {"Buckets": []})
+with stubber:
+ resp = client.list_buckets()
+ assert resp["Buckets"] == []
+
+# Test config/credential loading doesn't crash
+from botocore.config import Config
+cfg = Config(region_name="eu-west-1", retries={"max_attempts": 3})
+assert cfg.region_name == "eu-west-1"
+EOF