diff --git a/www/py-django-debreach/Makefile b/www/py-django-debreach/Makefile index 55bc40e050ed..e817f1c0f604 100644 --- a/www/py-django-debreach/Makefile +++ b/www/py-django-debreach/Makefile @@ -1,23 +1,27 @@ PORTNAME= django-debreach -PORTVERSION= 2.0.1 +PORTVERSION= 2.1.0 CATEGORIES= www security python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= kai@FreeBSD.org COMMENT= Adds protection against the BREACH attack in Django LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>0:www/py-django22@${PY_FLAVOR} -USES= python:3.5+ +USES= python:3.7+ USE_PYTHON= autoplist distutils NO_ARCH= yes +# Workaround to make the port still buildable with "distutils" +post-extract: + @${CP} ${FILESDIR}/setup.py ${WRKSRC}/ + do-test: @cd ${WRKSRC} && ${PYTHON_CMD} runtests.py .include diff --git a/www/py-django-debreach/distinfo b/www/py-django-debreach/distinfo index 686ae673e756..29fd98769408 100644 --- a/www/py-django-debreach/distinfo +++ b/www/py-django-debreach/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1586162610 -SHA256 (django-debreach-2.0.1.tar.gz) = 3dd90385918daef4951e67ef6c3dcb550ac5164d84f5cc9889ed52e312597d68 -SIZE (django-debreach-2.0.1.tar.gz) = 14592 +TIMESTAMP = 1642547128 +SHA256 (django-debreach-2.1.0.tar.gz) = aeac9f43e0ea97830bed69cb309ad5746b5ed2b9dce733ac4c136c8e16a7d6e5 +SIZE (django-debreach-2.1.0.tar.gz) = 15616 diff --git a/www/py-django-debreach/files/patch-pyproject.toml b/www/py-django-debreach/files/patch-pyproject.toml new file mode 100644 index 000000000000..0cb7e3454f26 --- /dev/null +++ b/www/py-django-debreach/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +Remove requirements for wheel and pip as they're not required for build + +--- pyproject.toml.orig 2022-01-19 06:15:34 UTC ++++ pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["setuptools", "wheel", "pip"] ++requires = ["setuptools"] + build-backend = "setuptools.build_meta" + + [tool.black] diff --git a/www/py-django-debreach/files/patch-setup.cfg b/www/py-django-debreach/files/patch-setup.cfg new file mode 100644 index 000000000000..552c7b1ea93e --- /dev/null +++ b/www/py-django-debreach/files/patch-setup.cfg @@ -0,0 +1,13 @@ +Remove requirements for wheel and pip as they're not required for build + +--- setup.cfg.orig 2022-01-19 06:16:57 UTC ++++ setup.cfg +@@ -32,7 +32,7 @@ classifiers = + zip_safe = False + include_package_data = True + packages = find: +-setup_requires = setuptools;wheel;pip ++setup_requires = setuptools + python_requires = >=3.7 + tests_require = django + diff --git a/www/py-django-debreach/files/setup.py b/www/py-django-debreach/files/setup.py new file mode 100644 index 000000000000..2285e429c304 --- /dev/null +++ b/www/py-django-debreach/files/setup.py @@ -0,0 +1,5 @@ +# Enable build with distutils + +from setuptools import setup + +setup()