From 0f833b1b9cf5156a4bf72a45ad72ab12891c4974 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Thu, 16 Apr 2026 21:12:30 +0300 Subject: [PATCH] python3-drf-nested-routers: update to 0.95.0; add test.sh Add PYPI_SOURCE_NAME:=drf_nested_routers as the 0.95.0 sdist uses underscores in the filename. Signed-off-by: Alexandru Ardelean --- .../python3-drf-nested-routers/Makefile | 7 +++--- .../python/python3-drf-nested-routers/test.sh | 23 +++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 lang/python/python3-drf-nested-routers/test.sh diff --git a/lang/python/python3-drf-nested-routers/Makefile b/lang/python/python3-drf-nested-routers/Makefile index 1e7e50ae37..b98ae25796 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 0000000000..031855ba07 --- /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