Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2024 06:43:14 GMT
From:      Dries Michiels <driesm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 24298a939e92 - main - archivers/py-py7zr: add new port
Message-ID:  <202411220643.4AM6hEJO045686@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=24298a939e924449c2ae88749a9c6a152b9badd9

commit 24298a939e924449c2ae88749a9c6a152b9badd9
Author:     Matthew Wener <matthew@wener.org>
AuthorDate: 2024-11-21 21:15:20 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2024-11-22 06:43:02 +0000

    archivers/py-py7zr: add new port
    
    Pure python 7-zip library.
    
    PR:     282838
---
 archivers/Makefile           |  1 +
 archivers/py-py7zr/Makefile  | 44 ++++++++++++++++++++++++++++++++++++++++++++
 archivers/py-py7zr/distinfo  |  3 +++
 archivers/py-py7zr/pkg-descr |  3 +++
 4 files changed, 51 insertions(+)

diff --git a/archivers/Makefile b/archivers/Makefile
index 72f206ed39ca..b30c5e9fa620 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -204,6 +204,7 @@
     SUBDIR += py-lzstring
     SUBDIR += py-multivolumefile
     SUBDIR += py-patool
+    SUBDIR += py-py7zr
     SUBDIR += py-pybcj
     SUBDIR += py-pyminizip
     SUBDIR += py-pyppmd
diff --git a/archivers/py-py7zr/Makefile b/archivers/py-py7zr/Makefile
new file mode 100644
index 000000000000..7b55d2cded8b
--- /dev/null
+++ b/archivers/py-py7zr/Makefile
@@ -0,0 +1,44 @@
+PORTNAME=	py7zr
+PORTVERSION=	0.22.0
+CATEGORIES=	archivers python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	matthew@wener.org
+COMMENT=	Pure python 7-zip library
+WWW=		https://py7zr.readthedocs.io/
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}brotli>=0:archivers/py-brotli@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}brotlicffi>=0:archivers/py-brotlicffi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}inflate64>=0:archivers/py-inflate64@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}multivolumefile>=0:archivers/py-multivolumefile@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pybcj>=0:archivers/py-pybcj@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pycryptodomex>=0:security/py-pycryptodomex@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyppmd>=0:archivers/py-pyppmd@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyzstd>=0:archivers/py-pyzstd@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}texttable>=0:textproc/py-texttable@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}py-cpuinfo>=0:sysutils/py-py-cpuinfo@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-benchmark>=0:devel/py-pytest-benchmark@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-remotedata>=0:devel/py-pytest-remotedata@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-timeout>=0:devel/py-pytest-timeout@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517 pytest
+
+TEST_ENV=	${MAKE_ENV} \
+		PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v
+
+.include <bsd.port.mk>
diff --git a/archivers/py-py7zr/distinfo b/archivers/py-py7zr/distinfo
new file mode 100644
index 000000000000..310db97ebf71
--- /dev/null
+++ b/archivers/py-py7zr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724809518
+SHA256 (py7zr-0.22.0.tar.gz) = c6c7aea5913535184003b73938490f9a4d8418598e533f9ca991d3b8e45a139e
+SIZE (py7zr-0.22.0.tar.gz) = 4992926
diff --git a/archivers/py-py7zr/pkg-descr b/archivers/py-py7zr/pkg-descr
new file mode 100644
index 000000000000..43c9766990c8
--- /dev/null
+++ b/archivers/py-py7zr/pkg-descr
@@ -0,0 +1,3 @@
+py7zr is a library and utility to support 7zip archive
+compression, decompression, encryption and decryption
+written by Python programming language.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411220643.4AM6hEJO045686>