summaryrefslogtreecommitdiff
path: root/security/py-pyhanko
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--security/py-pyhanko-certvalidator/Makefile5
-rw-r--r--security/py-pyhanko-certvalidator/distinfo6
-rw-r--r--security/py-pyhanko-certvalidator/files/patch-pyproject.toml12
-rw-r--r--security/py-pyhanko-cli/Makefile30
-rw-r--r--security/py-pyhanko-cli/distinfo3
-rw-r--r--security/py-pyhanko-cli/files/patch-pyproject.toml19
-rw-r--r--security/py-pyhanko-cli/pkg-descr2
-rw-r--r--security/py-pyhanko/Makefile9
-rw-r--r--security/py-pyhanko/distinfo6
-rw-r--r--security/py-pyhanko/files/patch-pyproject.toml21
-rw-r--r--security/py-pyhanko/pkg-descr7
11 files changed, 94 insertions, 26 deletions
diff --git a/security/py-pyhanko-certvalidator/Makefile b/security/py-pyhanko-certvalidator/Makefile
index fcebea04afee..4da59bde9079 100644
--- a/security/py-pyhanko-certvalidator/Makefile
+++ b/security/py-pyhanko-certvalidator/Makefile
@@ -1,5 +1,5 @@
PORTNAME= pyhanko-certvalidator
-PORTVERSION= 0.26.8
+PORTVERSION= 0.27.0
CATEGORIES= security python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -7,7 +7,8 @@ DISTNAME= pyhanko_certvalidator-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Validates X.509 certificates and paths
-WWW= https://github.com/MatthiasValvekens/certvalidator
+WWW= https://github.com/MatthiasValvekens/pyHanko/tree/master/pkgs/pyhanko-certvalidator \
+ https://github.com/MatthiasValvekens/pyHanko
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
diff --git a/security/py-pyhanko-certvalidator/distinfo b/security/py-pyhanko-certvalidator/distinfo
index e53abab91bd8..551d2a7abd70 100644
--- a/security/py-pyhanko-certvalidator/distinfo
+++ b/security/py-pyhanko-certvalidator/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1742070464
-SHA256 (pyhanko_certvalidator-0.26.8.tar.gz) = 57c496cebfa5d5e4d3d300dbb4974c66e1a4d9ca4a7a978b20bc66fdeb9dbcdb
-SIZE (pyhanko_certvalidator-0.26.8.tar.gz) = 102649
+TIMESTAMP = 1748107944
+SHA256 (pyhanko_certvalidator-0.27.0.tar.gz) = 94820b23ccecadfa64fa7f61b0427f751edcfa24f1bcbfb052b5780bdeab3def
+SIZE (pyhanko_certvalidator-0.27.0.tar.gz) = 104111
diff --git a/security/py-pyhanko-certvalidator/files/patch-pyproject.toml b/security/py-pyhanko-certvalidator/files/patch-pyproject.toml
index d63981588a4a..d7e06f702bf3 100644
--- a/security/py-pyhanko-certvalidator/files/patch-pyproject.toml
+++ b/security/py-pyhanko-certvalidator/files/patch-pyproject.toml
@@ -1,4 +1,4 @@
---- pyproject.toml.orig 2025-03-15 15:08:08 UTC
+--- pyproject.toml.orig 2025-05-24 11:55:40 UTC
+++ pyproject.toml
@@ -1,6 +1,6 @@ requires = [
[build-system]
@@ -8,3 +8,13 @@
"wheel"
]
build-backend = "setuptools.build_meta"
+@@ -8,8 +8,7 @@ authors = [{name = "Matthias Valvekens", email = "dev@
+ [project]
+ name = "pyhanko-certvalidator"
+ authors = [{name = "Matthias Valvekens", email = "dev@mvalvekens.be"}]
+-license = "MIT"
+-license-files = ["LICENSE"]
++license = {text = "MIT"}
+ description = "Validates X.509 certificates and paths; forked from wbond/certvalidator"
+ keywords = [
+ "crypto",
diff --git a/security/py-pyhanko-cli/Makefile b/security/py-pyhanko-cli/Makefile
new file mode 100644
index 000000000000..d5834355e802
--- /dev/null
+++ b/security/py-pyhanko-cli/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= pyhanko-cli
+DISTNAME= pyhanko_cli-${PORTVERSION}
+PORTVERSION= 0.1.2
+PORTREVISION= 1
+CATEGORIES= security python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= CLI tools for stamping and signing PDF files
+WWW= https://pyhanko.readthedocs.io/en/latest/cli-guide/ \
+ https://github.com/MatthiasValvekens/pyHanko
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.5.1:devel/py-asn1crypto@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}click>=8.1.3:devel/py-click@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyhanko>=0.29.1<0.30:security/py-pyhanko@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyhanko-certvalidator>=0.27.0<0.28:security/py-pyhanko-certvalidator@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tzlocal>=4.3:devel/py-tzlocal@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/security/py-pyhanko-cli/distinfo b/security/py-pyhanko-cli/distinfo
new file mode 100644
index 000000000000..531fc9827b55
--- /dev/null
+++ b/security/py-pyhanko-cli/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1750954096
+SHA256 (pyhanko_cli-0.1.2.tar.gz) = 932c09c46a07ff070db6afc3b1475d3a61cb489ea4b0a0a3be84c70db2c41e6e
+SIZE (pyhanko_cli-0.1.2.tar.gz) = 27304
diff --git a/security/py-pyhanko-cli/files/patch-pyproject.toml b/security/py-pyhanko-cli/files/patch-pyproject.toml
new file mode 100644
index 000000000000..975a0994ebe7
--- /dev/null
+++ b/security/py-pyhanko-cli/files/patch-pyproject.toml
@@ -0,0 +1,19 @@
+--- pyproject.toml.orig 2025-06-20 20:47:42 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools>=80.8.0"]
++requires = ["setuptools>=61"]
+ build-backend = "setuptools.build_meta"
+
+ [project]
+@@ -7,8 +7,7 @@ maintainers = [{name = "Matthias Valvekens", email = "
+ description = "CLI tools for stamping and signing PDF files"
+ authors = [{name = "Matthias Valvekens", email = "dev@mvalvekens.be"}]
+ maintainers = [{name = "Matthias Valvekens", email = "dev@mvalvekens.be"}]
+-license = "MIT"
+-license-files = ["LICENSE"]
++license = {text = "MIT"}
+ keywords = [
+ "signature",
+ "pdf",
diff --git a/security/py-pyhanko-cli/pkg-descr b/security/py-pyhanko-cli/pkg-descr
new file mode 100644
index 000000000000..79ee1fdf337a
--- /dev/null
+++ b/security/py-pyhanko-cli/pkg-descr
@@ -0,0 +1,2 @@
+The lack of open-source CLI tooling to handle digitally signing and stamping PDF
+files was bothering me, so I went ahead and rolled my own.
diff --git a/security/py-pyhanko/Makefile b/security/py-pyhanko/Makefile
index 8541d75a1d02..15de838aa27f 100644
--- a/security/py-pyhanko/Makefile
+++ b/security/py-pyhanko/Makefile
@@ -1,5 +1,6 @@
PORTNAME= pyhanko
-PORTVERSION= 0.27.1
+PORTVERSION= 0.29.1
+PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= PYPI \
https://github.com/MatthiasValvekens/pyHanko/releases/download/v${PORTVERSION}/
@@ -18,7 +19,7 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FL
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.5.1:devel/py-asn1crypto@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}click>=8.1.3<8.2.0:devel/py-click@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}defusedxml>=0.7.1<0.8:devel/py-defusedxml@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pyhanko-certvalidator>=0.26.5<0.27:security/py-pyhanko-certvalidator@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyhanko-certvalidator>=0.27.0<0.28:security/py-pyhanko-certvalidator@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyyaml>=6.0:devel/py-pyyaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}qrcode>=7.3.1:textproc/py-qrcode@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.31.0:www/py-requests@${PY_FLAVOR} \
@@ -37,13 +38,13 @@ OPENTYPE_DESC= OpenType/TrueType support
PKGCS11_DESC= PKGCS\#11 support
XMP_DESC= XMP (Extensible Metadata Platform) support
-ASYNC_HTTP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.9.0<3.12:www/py-aiohttp@${PY_FLAVOR}
+ASYNC_HTTP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.9<3.13:www/py-aiohttp@${PY_FLAVOR}
ETSI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xsdata>=24.4<26.0:devel/py-xsdata@${PY_FLAVOR}
IMAGE_SUPPORT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=7.2.0:graphics/py-pillow@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}python-barcode>=0.15.1<0.15.1_99:graphics/py-python-barcode@${PY_FLAVOR}
OPENTYPE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}fonttools>=4.33.3:print/py-fonttools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}uharfbuzz>=0.25.0<0.51.0:print/py-uharfbuzz@${PY_FLAVOR}
-PKGCS11_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-pkcs11>=0.7.0<0.8:security/py-python-pkcs11@${PY_FLAVOR}
+PKGCS11_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-pkcs11>=0.8.0<0.9:security/py-python-pkcs11@${PY_FLAVOR}
XMP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}defusedxml>=0.7.1<0.8:devel/py-defusedxml@${PY_FLAVOR}
.include <bsd.port.mk>
diff --git a/security/py-pyhanko/distinfo b/security/py-pyhanko/distinfo
index 4cd65e8ba54c..8f219ecc7a0c 100644
--- a/security/py-pyhanko/distinfo
+++ b/security/py-pyhanko/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1747715466
-SHA256 (pyhanko-0.27.1.tar.gz) = 2378e3189591740a94d5633d772cb11d9a619dab7ed5437fa3004c95ae279de8
-SIZE (pyhanko-0.27.1.tar.gz) = 389689
+TIMESTAMP = 1750954232
+SHA256 (pyhanko-0.29.1.tar.gz) = 4b7787fc9ff325012ce85f24b67c13b1c9507991e2570c955b23522e3a2dc3b6
+SIZE (pyhanko-0.29.1.tar.gz) = 366860
diff --git a/security/py-pyhanko/files/patch-pyproject.toml b/security/py-pyhanko/files/patch-pyproject.toml
index eadfc8905bdf..f5c510df08b8 100644
--- a/security/py-pyhanko/files/patch-pyproject.toml
+++ b/security/py-pyhanko/files/patch-pyproject.toml
@@ -1,17 +1,20 @@
---- pyproject.toml.orig 2024-03-07 22:13:09 UTC
+--- pyproject.toml.orig 2025-05-27 21:43:28 UTC
+++ pyproject.toml
-@@ -1,12 +1,12 @@ requires = [
+@@ -1,14 +1,13 @@
[build-system]
- requires = [
-- "setuptools>=67.4",
-+ "setuptools>=61",
- "wheel"
- ]
+-requires = ["setuptools>=80.8.0"]
++requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
-name = "pyHanko"
+name = "pyhanko"
description = "Tools for stamping and signing PDF files"
- authors = [{name = "Matthias Valvekens", email = "dev@mvalvekens.be"}]
- maintainers = [{name = "Matthias Valvekens", email = "dev@mvalvekens.be"}]
+ authors = [{ name = "Matthias Valvekens", email = "dev@mvalvekens.be" }]
+ maintainers = [{ name = "Matthias Valvekens", email = "dev@mvalvekens.be" }]
+-license = "MIT"
+-license-files = ["LICENSE", "src/pyhanko/pdf_utils/LICENSE.PyPDF2"]
++license = {text = "MIT"}
+ keywords = [
+ "signature",
+ "pdf",
diff --git a/security/py-pyhanko/pkg-descr b/security/py-pyhanko/pkg-descr
index 2409be54cf91..6f865970a84b 100644
--- a/security/py-pyhanko/pkg-descr
+++ b/security/py-pyhanko/pkg-descr
@@ -1,5 +1,4 @@
-The lack of open-source CLI tooling to handle digitally signing and stamping PDF
-files was bothering me, so I went ahead and rolled my own.
+pyhanko is a library for working with signatures in PDF documents.
-Note: The working title of this project (and former name of the repository on
-GitHub) was pdf-stamp, which might still linger in some references.
+pyHanko's CLI is no longer bundled together with the library. This functionality
+is now distributed separately as pyhanko-cli.