From nobody Tue Apr 18 18:08:18 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q1Bjt5RDGz45Rb3; Tue, 18 Apr 2023 18:08:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q1Bjt3jP5z4DY3; Tue, 18 Apr 2023 18:08:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681841298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B1r7QpdYDk1E7KzVZEuu1Bmc0tF2Tf9BkxlNMpxg1oE=; b=CC+rlzWtARNMoRV/9wGo2hWCG/hu5DaVI6PG5A0g3UULzRAY0Oc+j9Xh+XPAhtzLQDVQyq tqe+uupPwG7kTWZUcTHNKt0ob4w3FXPNjIXBay1pygw67rsyWld9PHCoJr3tPsm8mJ/koJ VLVLSwzSQyj+ooBY0avMi/dOkyKFvaFPs2LvVezt3b8boS2CQlrkuSjfEO+Ef7gaqUV5qS N/Tz1tPp2nnAEzd/GuZT5Ni7xhm6uHWwyj3hO3YLS1ODfcobFXEcKzfK3auzDjKaQA9+xg zJ+b6I1ykhypMP27GV8b06+IEBHYkWVdkxo+5jYmsg7CU2VdZfW0wxlz9mWjhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681841298; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B1r7QpdYDk1E7KzVZEuu1Bmc0tF2Tf9BkxlNMpxg1oE=; b=tqSp9AMD4Gmc4GJfEvMc0PMFW6/ELIhY3KFJZfYMudc40pK5FgFZjsO/D6XKVJpYGSTgk1 zIjoJH2Si4WUB7J1rAQV/+bOAGB4XgSO5i4b2eXImnbzB9PHnEYAi1qbLHxEzK340TGIE4 f17LTWhXyosMmtFl1DaGGdUlLyGfs83ccyvxiclbCG3iby+palVtZ2oW5XkBpHEG9vI0Jo HJvKTXb21sWRm8XNhnhD3LNN3sUhCDWtZXzb5CqlIb7Okju85iRW3ljF54U5jqSPyhokPQ x6MwhhuIVK6wCuNO70wvO06EAc1OQ+d0SNTk4hcI7YcYCoxEJdCrNW1OorTUwQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681841298; a=rsa-sha256; cv=none; b=Hwyql5UklrnlqOOyO9VaVTQFAhx9oM3V7PhjUBbLW09JPlCelQyteUPZlJ0M0Rbx82z/Sm v4iKveDApJxXMA6UpXrs+LbCivFvDI+2wsLi0hIqdgGH7Rt3srejtYH89w2RAQmw2XSSph e/R8xIsPKF4Ze6nnIi1sAHYAV5rJ8MicdcWGxeZl5Qb+OqEy+yXoVIkODMJYaXStoi9R/a RWIhLz37/dUkcctdNK9gPzuFxFGjCF/xDmwwqmr0YnKjoo2KImy8ZzAXo+bu+VuNWpr4Ie bveRfkFbcwTb3jUugh0156mgtEvl1Fx6FNfIMEmEJMY731aqHMTn9M7q7uW9Uw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Q1Bjt2lY6zMjm; Tue, 18 Apr 2023 18:08:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33II8IKv078542; Tue, 18 Apr 2023 18:08:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33II8Idj078541; Tue, 18 Apr 2023 18:08:18 GMT (envelope-from git) Date: Tue, 18 Apr 2023 18:08:18 GMT Message-Id: <202304181808.33II8Idj078541@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 5e663a4f8f3c - main - security/py-pyhanko: Add py-pyhanko 0.17.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5e663a4f8f3ca208b1757feea4635be259e27092 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=5e663a4f8f3ca208b1757feea4635be259e27092 commit 5e663a4f8f3ca208b1757feea4635be259e27092 Author: Po-Chuan Hsieh AuthorDate: 2023-04-18 17:51:42 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-04-18 18:00:42 +0000 security/py-pyhanko: Add py-pyhanko 0.17.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. 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. --- security/Makefile | 1 + security/py-pyhanko/Makefile | 30 ++++++++++++++++++++++++++++++ security/py-pyhanko/distinfo | 3 +++ security/py-pyhanko/files/patch-setup.py | 10 ++++++++++ security/py-pyhanko/pkg-descr | 5 +++++ 5 files changed, 49 insertions(+) diff --git a/security/Makefile b/security/Makefile index efe5824eb34c..56c0cb233f06 100644 --- a/security/Makefile +++ b/security/Makefile @@ -958,6 +958,7 @@ SUBDIR += py-pycryptodome-test-vectors SUBDIR += py-pycryptodomex SUBDIR += py-pyelliptic + SUBDIR += py-pyhanko SUBDIR += py-pyhanko-certvalidator SUBDIR += py-pylibacl SUBDIR += py-pymacaroons diff --git a/security/py-pyhanko/Makefile b/security/py-pyhanko/Makefile new file mode 100644 index 000000000000..beb8a6b99f39 --- /dev/null +++ b/security/py-pyhanko/Makefile @@ -0,0 +1,30 @@ +PORTNAME= pyhanko +PORTVERSION= 0.17.2 +CATEGORIES= security python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pyHanko-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Tools for stamping and signing PDF files +WWW= https://github.com/MatthiasValvekens/pyHanko + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>=1.5.1:devel/py-asn1crypto@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>=7.1.2:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cryptography>=3.3.1:security/py-cryptography@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyhanko-certvalidator>=0.20<0.21:security/py-pyhanko-certvalidator@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytz>=2020.1,1:devel/py-pytz@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}yaml>=5.3.1:devel/py-yaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}qrcode>=6.1:textproc/py-qrcode@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.24.0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tzlocal>=2.1:devel/py-tzlocal@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/security/py-pyhanko/distinfo b/security/py-pyhanko/distinfo new file mode 100644 index 000000000000..3f23f90dd60d --- /dev/null +++ b/security/py-pyhanko/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1681052896 +SHA256 (pyHanko-0.17.2.tar.gz) = b1f027f0f63a0c9f6c457652c8d1f5c959e6569ec79cdcdbee19cf8f9f2ad423 +SIZE (pyHanko-0.17.2.tar.gz) = 334201 diff --git a/security/py-pyhanko/files/patch-setup.py b/security/py-pyhanko/files/patch-setup.py new file mode 100644 index 000000000000..078e8d6520af --- /dev/null +++ b/security/py-pyhanko/files/patch-setup.py @@ -0,0 +1,10 @@ +--- setup.py.orig 2023-03-09 22:50:58 UTC ++++ setup.py +@@ -70,7 +70,6 @@ setup( + 'cryptography>=3.3.1' + ], + setup_requires=[ +- 'wheel', 'pytest-runner' + ], + extras_require={ + 'extra_pubkey_algs': ['oscrypto>=1.2.1'], diff --git a/security/py-pyhanko/pkg-descr b/security/py-pyhanko/pkg-descr new file mode 100644 index 000000000000..2409be54cf91 --- /dev/null +++ b/security/py-pyhanko/pkg-descr @@ -0,0 +1,5 @@ +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. + +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.