From nobody Sun Jul 09 10:33:31 2023 X-Original-To: dev-commits-ports-main@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 4QzNlH3PHBz4ljvr; Sun, 9 Jul 2023 10:33:31 +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 4QzNlH2C7sz3tSq; Sun, 9 Jul 2023 10:33:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688898811; 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=1QBOpZblJptJKuyUhwBT4fiI0dT4CeFtmkugiF1jxgM=; b=HbRbBc5YvfmlAA1GlpP3PK1SEck39q16yxWZD4CIa4me8iGX2UxPUMuTHMY0kUlpnEV1HD 13fDW2ISPtc6rfE+6j5L5au53lRSa0nVqCNcrpXKqz6wQlyMrmBGx7zMzolQ2UePw99n4h JbisU+fL0Xn7NPJFpvVx0cBJmi8O9Ck00nS9McJOkhCzdCM345pBWBYfSLZ9nlQZn08S9x 8+i0yJJreCp2i2SEDR0RfRtL5C2sCRs22bNFpen4SoWCVm4LSK9ystXXrzP2RcWQ/fbaIE ujE0hx/ZVT3Pz2zDTl0kCXR1LURCzi5RsgFFYFQLjb+ecv5zzxu2UZyqIHgRVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688898811; 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=1QBOpZblJptJKuyUhwBT4fiI0dT4CeFtmkugiF1jxgM=; b=X6fulpqKgdHuONTZjYzuTHhHODeyU5EKjzkpd2MHq4AihVHuYjn5wCN6GgrX5rHzwPG5/+ ESqsFnaP5uA2sRQoYTUiAAb6FG4Ny3ec6jM+7uhWRLTOvaV4FJNA2ZPGnd0+qyl5YAa2ds KTZjNvzhx4UMltfAZERbFdcYTCTrbPY/BwtlDvXGiA/ds9S7RAw+EW+euWvamDIYRxDVUF XEaRCz8JC5z3/QZQ64+tiETxUpSUeeENqGJcB5pgvjypFMjijE5XX8vM7XhOta17/cc5Bo n0JAaPLeZZHQvcb8/6rqMJ0cTlaS60YwzW/OJFVLWimH6lRaXPlsh48WB2rSBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688898811; a=rsa-sha256; cv=none; b=bmOqVeQxbQNv5dJh27IvL/RMmzHxSv0bHBDmLtYPGe0wyIjp/f6T2kpMVf4GRTsyQ6Em1/ UIcsPQ14R0XZmpJjDfj9yghRSu+50yTpZBJZvelN2JXhNLeuP2RhWEWazTbEtSTl4dk7Pe UWNa0bT1wDP15/55HQF50s/90Ntn8N3wuF5ZHZl2PBOucJ88Odh5imJkVhSX+AaYr17cFp WekGo65e74pXlDJBvJJdp8XA2dcoMyLTAiQyMo7+K5KibthJ50DuqAE0FrOm3jdW43i3rc wBzpKBsDlCeZS8scAtBlOxW5mNJdlWcBYZXJ/7DNLuraHHROMn5SsE9BTqRzSg== 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 4QzNlH0x3cz10Pm; Sun, 9 Jul 2023 10:33:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 369AXVOL055172; Sun, 9 Jul 2023 10:33:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 369AXVrJ055171; Sun, 9 Jul 2023 10:33:31 GMT (envelope-from git) Date: Sun, 9 Jul 2023 10:33:31 GMT Message-Id: <202307091033.369AXVrJ055171@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: 6bf8c06271cd - main - devel/py-pip-audit: Add py-pip-audit 2.5.6 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: 6bf8c06271cd19c0ee2b10f7a932c3d2e1103db6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6bf8c06271cd19c0ee2b10f7a932c3d2e1103db6 commit 6bf8c06271cd19c0ee2b10f7a932c3d2e1103db6 Author: Po-Chuan Hsieh AuthorDate: 2023-07-09 10:10:24 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-07-09 10:10:24 +0000 devel/py-pip-audit: Add py-pip-audit 2.5.6 pip-audit is a tool for scanning Python environments for packages with known vulnerabilities. It uses the Python Packaging Advisory Database (https://github.com/pypa/advisory-database) via the PyPI JSON API as a source of vulnerability reports. --- devel/Makefile | 1 + devel/py-pip-audit/Makefile | 32 +++++++++++++++++++++++++++ devel/py-pip-audit/distinfo | 3 +++ devel/py-pip-audit/files/patch-pyproject.toml | 11 +++++++++ devel/py-pip-audit/pkg-descr | 4 ++++ 5 files changed, 51 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index acf6a8fa3960..cabcaabcd674 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5131,6 +5131,7 @@ SUBDIR += py-pint-pandas SUBDIR += py-pip SUBDIR += py-pip-api + SUBDIR += py-pip-audit SUBDIR += py-pip-licenses SUBDIR += py-pip-run SUBDIR += py-pip-shims diff --git a/devel/py-pip-audit/Makefile b/devel/py-pip-audit/Makefile new file mode 100644 index 000000000000..5940dab3bba0 --- /dev/null +++ b/devel/py-pip-audit/Makefile @@ -0,0 +1,32 @@ +PORTNAME= pip-audit +PORTVERSION= 2.5.6 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pip_audit-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Tool for scanning Python environments for known vulnerabilities +WWW= https://github.com/pypa/pip-audit + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cachecontrol>=0.12.0:www/py-cachecontrol@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cyclonedx-python-lib>=2.0:textproc/py-cyclonedx-python-lib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}html5lib>=1.1:www/py-html5lib@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=23.0.0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pip-api>=0.0.28:devel/py-pip-api@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pip-requirements-parser>=32.0.0:devel/py-pip-requirements-parser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.31.0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rich>=12.4:textproc/py-rich@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}toml>=0.10:textproc/py-toml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}urllib3>=1.26,1<2,1:net/py-urllib3@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include diff --git a/devel/py-pip-audit/distinfo b/devel/py-pip-audit/distinfo new file mode 100644 index 000000000000..2619c942b085 --- /dev/null +++ b/devel/py-pip-audit/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1688166010 +SHA256 (pip_audit-2.5.6.tar.gz) = 04fc0ad1727674181bda243a457af5a73038ee691dd9b8afc71f7e9292ce3912 +SIZE (pip_audit-2.5.6.tar.gz) = 46498 diff --git a/devel/py-pip-audit/files/patch-pyproject.toml b/devel/py-pip-audit/files/patch-pyproject.toml new file mode 100644 index 000000000000..2d10bc981281 --- /dev/null +++ b/devel/py-pip-audit/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2023-05-23 00:26:07 UTC ++++ pyproject.toml +@@ -30,7 +30,7 @@ dependencies = [ + "CacheControl[filecache] >= 0.12.0", + # NOTE(ww): Release 2.5.0 is broken, subsequent 2.5.x releases fix it. + # See: https://github.com/CycloneDX/cyclonedx-python-lib/issues/245 +- "cyclonedx-python-lib ~= 2.0, != 2.5.0", ++ "cyclonedx-python-lib >= 2.0, != 2.5.0", + "html5lib>=1.1", + "packaging>=23.0.0", # https://github.com/pypa/pip-audit/issues/464 + "pip-api>=0.0.28", diff --git a/devel/py-pip-audit/pkg-descr b/devel/py-pip-audit/pkg-descr new file mode 100644 index 000000000000..765406a97473 --- /dev/null +++ b/devel/py-pip-audit/pkg-descr @@ -0,0 +1,4 @@ +pip-audit is a tool for scanning Python environments for packages with known +vulnerabilities. It uses the Python Packaging Advisory Database +(https://github.com/pypa/advisory-database) via the PyPI JSON API as a source of +vulnerability reports.