diff --git a/www/py-http-sf/Makefile b/www/py-http-sf/Makefile index f869f3887c5f..255078cc9fbd 100644 --- a/www/py-http-sf/Makefile +++ b/www/py-http-sf/Makefile @@ -1,24 +1,27 @@ PORTNAME= http-sf -DISTVERSION= 1.0.7 +DISTVERSION= 1.2.0 CATEGORIES= www python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION} MAINTAINER= yuri@FreeBSD.org COMMENT= Library for parsing and serializing HTTP Structured Fields (RFC 9651) WWW= https://github.com/mnot/http-sf LICENSE= MIT -LICENSE_FILE= ${WRKSRC}/LICENCE.md BUILD_DEPENDS= ${PY_SETUPTOOLS} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>0:devel/py-typing-extensions@${PY_FLAVOR} USES= python -USE_PYTHON= pep517 autoplist +USE_PYTHON= pep517 autoplist pytest NO_ARCH= yes +# tests as of 1.2.0: +# Results (0.09s): +# 12 passed + .include diff --git a/www/py-http-sf/distinfo b/www/py-http-sf/distinfo index 70992ed32c7b..ad32a26fdb33 100644 --- a/www/py-http-sf/distinfo +++ b/www/py-http-sf/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1764147448 -SHA256 (http_sf-1.0.7.tar.gz) = 862b8cd7c386cbcdd382f499cdfbf66eebc48fc4f0e974bfea483fd001265f96 -SIZE (http_sf-1.0.7.tar.gz) = 18371 +TIMESTAMP = 1714018980 +SHA256 (http_sf-1.2.0.tar.gz) = 396312322f14fd74813c7938ef517eb29fb3f48664be78c1386dc66ec8b2e2b2 +SIZE (http_sf-1.2.0.tar.gz) = 18866 diff --git a/www/py-http-sf/files/patch-pyproject.toml b/www/py-http-sf/files/patch-pyproject.toml new file mode 100644 index 000000000000..2c20e6b7adc1 --- /dev/null +++ b/www/py-http-sf/files/patch-pyproject.toml @@ -0,0 +1,15 @@ +-- Fix invalid pyproject.toml configuration that references LICENSE.md which doesn't exist +-- in the distribution tarball. Upstream issue: the project uses invalid license specification. +-- Changed from 'license = "MIT"' with non-existent license-files reference to 'license = {text = "MIT"}' +--- pyproject.toml.orig2025-04-09 16:20:00 UTC ++++ pyproject.toml +@@ -4,8 +4,7 @@ + description = "Parse and serialise HTTP Structured Fields" + readme = "README.md" + requires-python = ">=3.10" +-license = "MIT" +-license-files = ["LICENSE.md"] ++license = {text = "MIT"} + classifiers = [ + "Operating System :: OS Independent", + "Development Status :: 4 - Beta"