Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lang/python/itsdangerous/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <ardeleanalex@gmail.com>
PKG_LICENSE:=BSD-3-Clause
Expand Down
28 changes: 28 additions & 0 deletions lang/python/itsdangerous/test.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions lang/python/python-awscli/Makefile
Original file line number Diff line number Diff line change
@@ -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 <ardeleanalex@gmail.com>
PKG_LICENSE:=Apache-2.0
Expand Down
4 changes: 2 additions & 2 deletions lang/python/python-pyroute2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <martin.matejek@nic.cz>
PKG_LICENSE:=GPL-2.0-or-later Apache-2.0
Expand Down
7 changes: 4 additions & 3 deletions lang/python/python3-drf-nested-routers/Makefile
Original file line number Diff line number Diff line change
@@ -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 <peter.stadler@student.uibk.ac.at>
PKG_LICENSE:=Apache-2.0
Expand Down
23 changes: 23 additions & 0 deletions lang/python/python3-drf-nested-routers/test.sh
Original file line number Diff line number Diff line change
@@ -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
Loading