diff --git a/lang/python/python3-django-cors-headers/Makefile b/lang/python/python3-django-cors-headers/Makefile index 3d7b8533b3..0240d0885d 100644 --- a/lang/python/python3-django-cors-headers/Makefile +++ b/lang/python/python3-django-cors-headers/Makefile @@ -1,11 +1,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=django-cors-headers -PKG_VERSION:=3.10.0 +PKG_VERSION:=4.9.0 PKG_RELEASE:=2 PYPI_NAME:=django-cors-headers -PKG_HASH:=cd6f4360f5246569c149dc1c40c907c191f1ec45551e10d2a2e2e68512652f78 +PYPI_SOURCE_NAME:=django_cors_headers +PKG_HASH:=fe5d7cb59fdc2c8c646ce84b727ac2bca8912a247e6e68e1fb507372178e59e8 PKG_MAINTAINER:=Peter Stadler PKG_LICENSE:=MIT diff --git a/lang/python/python3-django-cors-headers/test.sh b/lang/python/python3-django-cors-headers/test.sh new file mode 100644 index 0000000000..396cfba133 --- /dev/null +++ b/lang/python/python3-django-cors-headers/test.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +[ "$1" = python3-django-cors-headers ] || exit 0 + +python3 - << 'EOF' +import corsheaders +from corsheaders.middleware import CorsMiddleware +from corsheaders.conf import conf + +assert CorsMiddleware is not None +assert conf is not None + +print("python3-django-cors-headers OK") +EOF