Skip to content

Commit

Permalink
security/py-pyhanko: Add py-pyhanko 0.17.2
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sunpoet committed Apr 18, 2023
1 parent 9316129 commit 5e663a4
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions security/Makefile
Expand Up @@ -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
Expand Down
30 changes: 30 additions & 0 deletions 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 <bsd.port.mk>
3 changes: 3 additions & 0 deletions 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
10 changes: 10 additions & 0 deletions 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'],
5 changes: 5 additions & 0 deletions 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.

0 comments on commit 5e663a4

Please sign in to comment.