diff --git a/lang/python/itsdangerous/Makefile b/lang/python/itsdangerous/Makefile index 769333ba3f1e3..e6d57063d1d89 100644 --- a/lang/python/itsdangerous/Makefile +++ b/lang/python/itsdangerous/Makefile @@ -5,11 +5,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=itsdangerous -PKG_VERSION:=2.1.2 +PKG_VERSION:=2.2.0 PKG_RELEASE:=1 PYPI_NAME:=$(PKG_NAME) -PKG_HASH:=5dbbc68b317e5e42f327f9021763545dc3fc3bfe22e6deb96aaf1fc38874156a +PKG_HASH:=e0050c0b7da1eea53ffaf149c0cfbb5c6e2e2b69c4bef22c81fa6eb73e5f6173 PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=BSD-3-Clause diff --git a/lang/python/itsdangerous/test.sh b/lang/python/itsdangerous/test.sh new file mode 100644 index 0000000000000..17f8174e324d2 --- /dev/null +++ b/lang/python/itsdangerous/test.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +[ "$1" = python3-itsdangerous ] || exit 0 + +python3 - << 'EOF' +from itsdangerous import URLSafeSerializer, URLSafeTimedSerializer, BadSignature + +s = URLSafeSerializer("secret-key") +token = s.dumps({"user_id": 42, "role": "admin"}) +assert isinstance(token, str) +data = s.loads(token) +assert data["user_id"] == 42 +assert data["role"] == "admin" + +# Test that tampered tokens are rejected +try: + s.loads(token + "tampered") + assert False, "should have raised BadSignature" +except BadSignature: + pass + +# Test timed serializer +ts = URLSafeTimedSerializer("another-secret") +timed_token = ts.dumps("payload") +assert ts.loads(timed_token) == "payload" + +print("python3-itsdangerous OK") +EOF diff --git a/lang/python/python-awscli/Makefile b/lang/python/python-awscli/Makefile index 03e3160eb20d9..26af9458a5034 100644 --- a/lang/python/python-awscli/Makefile +++ b/lang/python/python-awscli/Makefile @@ -1,11 +1,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-awscli -PKG_VERSION:=1.44.78 +PKG_VERSION:=1.44.79 PKG_RELEASE:=1 PYPI_NAME:=awscli -PKG_HASH:=009010f85e5198b7ad2860cc9c66c8a378be46d35dde1e14f8c1f245cfe6aece +PKG_HASH:=85ef9f6a75c71d950c39c341b9493ed0872885bbb19cce5a26859c1b8fcd1397 PKG_MAINTAINER:=Alexandru Ardelean PKG_LICENSE:=Apache-2.0 diff --git a/lang/python/python-pyroute2/Makefile b/lang/python/python-pyroute2/Makefile index 7763c8b4ec496..df2ebe113781a 100644 --- a/lang/python/python-pyroute2/Makefile +++ b/lang/python/python-pyroute2/Makefile @@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk PKG_NAME:=python-pyroute2 -PKG_VERSION:=0.9.5 +PKG_VERSION:=0.9.6 PKG_RELEASE:=1 PYPI_NAME:=pyroute2 -PKG_HASH:=a198ccbe545b031b00b10da4b44df33d548db04af944be8107c05a215ba03872 +PKG_HASH:=6bc5e2ea9a372ded682b4ede4028ba00236bd6e35b42d833f39a96b219ef1db2 PKG_MAINTAINER:=Martin Matějek PKG_LICENSE:=GPL-2.0-or-later Apache-2.0 diff --git a/lang/python/python3-drf-nested-routers/Makefile b/lang/python/python3-drf-nested-routers/Makefile index 1e7e50ae379b9..b98ae25796246 100644 --- a/lang/python/python3-drf-nested-routers/Makefile +++ b/lang/python/python3-drf-nested-routers/Makefile @@ -1,11 +1,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=drf-nested-routers -PKG_VERSION:=0.93.4 -PKG_RELEASE:=2 +PKG_VERSION:=0.95.0 +PKG_RELEASE:=1 PYPI_NAME:=drf-nested-routers -PKG_HASH:=01aa556b8c08608bb74fb34f6ca065a5183f2cda4dc0478192cc17a2581d71b0 +PYPI_SOURCE_NAME:=drf_nested_routers +PKG_HASH:=815978f802e578fd7035c74040c104909cbe97615de89a275d77e928f4029891 PKG_MAINTAINER:=Peter Stadler PKG_LICENSE:=Apache-2.0 diff --git a/lang/python/python3-drf-nested-routers/test.sh b/lang/python/python3-drf-nested-routers/test.sh new file mode 100644 index 0000000000000..031855ba07019 --- /dev/null +++ b/lang/python/python3-drf-nested-routers/test.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +[ "$1" = python3-drf-nested-routers ] || exit 0 + +python3 - << 'EOF' +import django +from django.conf import settings +settings.configure( + INSTALLED_APPS=['rest_framework'], + DATABASES={}, +) + +from rest_framework_nested import routers + +router = routers.SimpleRouter() +assert router is not None + +# Verify NestedSimpleRouter is importable +from rest_framework_nested.routers import NestedSimpleRouter +assert NestedSimpleRouter is not None + +print("python3-drf-nested-routers OK") +EOF