diff --git a/cyclonedx_py/_internal/environment.py b/cyclonedx_py/_internal/environment.py
index afec4726..0e412dd5 100644
--- a/cyclonedx_py/_internal/environment.py
+++ b/cyclonedx_py/_internal/environment.py
@@ -27,13 +27,13 @@
from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Tuple
from cyclonedx.model import Property
-from cyclonedx.model.component import Component, ComponentType
+from cyclonedx.model.component import Component, ComponentEvidence, ComponentType
from packageurl import PackageURL
from packaging.requirements import Requirement
from . import BomBuilder, PropertyName, PurlTypePypi
from .cli_common import add_argument_mc_type, add_argument_pyproject
-from .utils.cdx import licenses_fixup, make_bom
+from .utils.cdx import find_LicenseExpression, licenses_fixup, make_bom
from .utils.packaging import metadata2extrefs, metadata2licenses, normalize_packagename
from .utils.pep610 import PackageSourceArchive, PackageSourceVcs, packagesource2extref, packagesource4dist
from .utils.pep639 import dist2licenses as dist2licenses_pep639
@@ -183,10 +183,21 @@ def __add_components(self, bom: 'Bom',
# path of dist-package on disc? naaa... a package may have multiple files/folders on disc
)
if self._pep639:
- component.licenses.update(
- dist2licenses_pep639(dist,
- self._gather_license_texts,
- self._logger))
+ pep639_licenses = list(dist2licenses_pep639(dist, self._gather_license_texts, self._logger))
+ pep639_lexp = find_LicenseExpression(pep639_licenses)
+ if pep639_lexp is not None:
+ component.licenses = (pep639_lexp,) # type:ignore[assignment]
+ pep639_licenses.remove(pep639_lexp)
+ if len(pep639_licenses) > 0:
+ if find_LicenseExpression(component.licenses) is None:
+ component.licenses.update(pep639_licenses)
+ else:
+ # hack for preventing expressions AND named licenses.
+ # see https://github.com/CycloneDX/cyclonedx-python/issues/826
+ # see https://github.com/CycloneDX/specification/issues/454
+ component.evidence = ComponentEvidence(licenses=pep639_licenses)
+ del pep639_lexp, pep639_licenses
+
del dist_meta, dist_name, dist_version
self.__component_add_extref_and_purl(component, packagesource4dist(dist))
all_components[normalize_packagename(component.name)] = (
diff --git a/cyclonedx_py/_internal/utils/cdx.py b/cyclonedx_py/_internal/utils/cdx.py
index fd2baf80..1f024060 100644
--- a/cyclonedx_py/_internal/utils/cdx.py
+++ b/cyclonedx_py/_internal/utils/cdx.py
@@ -21,7 +21,7 @@
"""
from re import compile as re_compile
-from typing import Any, Dict, Iterable
+from typing import Any, Dict, Iterable, Optional
from cyclonedx.builder.this import this_component as lib_component
from cyclonedx.model import ExternalReference, ExternalReferenceType, XsUri
@@ -87,11 +87,17 @@ def make_bom(**kwargs: Any) -> Bom:
return bom
-def licenses_fixup(licenses: Iterable['License']) -> Iterable['License']:
- licenses = set(licenses)
+def find_LicenseExpression(licenses: Iterable['License']) -> Optional[LicenseExpression]: # noqa: N802
for license in licenses:
if isinstance(license, LicenseExpression):
- return (license,)
+ return license
+ return None
+
+
+def licenses_fixup(licenses: Iterable['License']) -> Iterable['License']:
+ licenses = set(licenses)
+ if (lexp := find_LicenseExpression(licenses)) is not None:
+ return (lexp,)
return licenses
diff --git a/cyclonedx_py/_internal/utils/mimetypes.py b/cyclonedx_py/_internal/utils/mimetypes.py
index 8825c2eb..6ac49b08 100644
--- a/cyclonedx_py/_internal/utils/mimetypes.py
+++ b/cyclonedx_py/_internal/utils/mimetypes.py
@@ -19,22 +19,42 @@
from os.path import splitext
from typing import Optional
+_MIME_TEXT_PLAIN = 'text/plain'
+
_MAP_EXT_MIME = {
# https://www.iana.org/assignments/media-types/media-types.xhtml
+ '.csv': 'text/csv',
+ '.htm': 'text/html',
+ '.html': 'text/html',
'.md': 'text/markdown',
'.txt': 'text/plain',
'.rst': 'text/prs.fallenstein.rst',
+ '.xml': 'text/xml', # not `application/xml` -- our scope is text!
+ # license-specific files
+ '.license': _MIME_TEXT_PLAIN,
+ '.licence': _MIME_TEXT_PLAIN,
# add more mime types. pull-requests welcome!
}
+_LICENSE_FNAME_BASE = ('licence', 'license')
+_LICENSE_FNAME_EXT = (
+ '.apache',
+ '.bsd',
+ '.gpl',
+ '.mit',
+)
+
def guess_type(file_name: str) -> Optional[str]:
"""
The stdlib `mimetypes.guess_type()` is inconsistent, as it depends heavily on type registry in the env/os.
Therefore, this polyfill exists.
"""
- ext = splitext(file_name)[1].lower()
- return _MAP_EXT_MIME.get(
- ext,
- _stdlib_guess_type(file_name)[0]
- )
+ file_name_l = file_name.lower()
+ base, ext = splitext(file_name_l)
+ if ext == '':
+ return None
+ if base in _LICENSE_FNAME_BASE and ext in _LICENSE_FNAME_EXT:
+ return _MIME_TEXT_PLAIN
+ return _MAP_EXT_MIME.get(ext) \
+ or _stdlib_guess_type(file_name_l)[0]
diff --git a/tests/_data/infiles/environment/with-license-pep639/init.py b/tests/_data/infiles/environment/with-license-pep639/init.py
index bee6fe0d..844ae25b 100644
--- a/tests/_data/infiles/environment/with-license-pep639/init.py
+++ b/tests/_data/infiles/environment/with-license-pep639/init.py
@@ -63,6 +63,7 @@ def main() -> None:
).create(env_dir)
pip_install(
+ '--no-dependencies',
# with License-Expression
'attrs',
# with License-File
@@ -70,6 +71,8 @@ def main() -> None:
'jsonpointer',
'license_expression',
'lxml',
+ # with expression-like License AND License-File
+ 'cryptography==43.0.1', # https://github.com/CycloneDX/cyclonedx-python/issues/826
)
diff --git a/tests/_data/infiles/environment/with-license-pep639/pinning.txt b/tests/_data/infiles/environment/with-license-pep639/pinning.txt
index 7ae776b3..6fe4e747 100644
--- a/tests/_data/infiles/environment/with-license-pep639/pinning.txt
+++ b/tests/_data/infiles/environment/with-license-pep639/pinning.txt
@@ -1,5 +1,6 @@
attrs==23.2.0
boolean.py==4.0
+cryptography==43.0.1
jsonpointer==2.4
license-expression==30.3.0
lxml==5.3.0
diff --git a/tests/_data/infiles/environment/with-license-pep639/pyproject.toml b/tests/_data/infiles/environment/with-license-pep639/pyproject.toml
index da032c7b..0ca62575 100644
--- a/tests/_data/infiles/environment/with-license-pep639/pyproject.toml
+++ b/tests/_data/infiles/environment/with-license-pep639/pyproject.toml
@@ -12,4 +12,6 @@ dependencies = [
"jsonpointer",
"license_expression",
"lxml",
+ # with expression-like License AND License-File
+ "cryptography",
]
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.0.xml.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.0.xml.bin
index 30926376..54603ea9 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.0.xml.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.0.xml.bin
@@ -15,6 +15,13 @@
pkg:pypi/boolean.py@4.0
false
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+ pkg:pypi/cryptography@43.0.1
+ false
+
jsonpointer
2.4
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.1.xml.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.1.xml.bin
index 95b3c391..fb79f308 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.1.xml.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.1.xml.bin
@@ -354,6 +354,37 @@ SPDX-License-Identifier: BSD-2-Clause
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.2.json.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.2.json.bin
index 9d9b1723..783eb806 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.2.json.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.2.json.bin
@@ -100,6 +100,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "other",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -274,6 +314,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -290,6 +333,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.2.xml.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.2.xml.bin
index e5b167dd..82c17ece 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.2.xml.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.2.xml.bin
@@ -373,6 +373,37 @@ SPDX-License-Identifier: BSD-2-Clause
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -997,6 +1028,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
@@ -1005,6 +1037,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.3.json.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.3.json.bin
index 230dffdf..e4a1a8ff 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.3.json.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.3.json.bin
@@ -100,6 +100,77 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "evidence": {
+ "licenses": [
+ {
+ "license": {
+ "name": "declared license file: LICENSE",
+ "text": {
+ "content": "This software is made available under the terms of *either* of the licenses\nfound in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made\nunder the terms of *both* these licenses.\n",
+ "contentType": "text/plain"
+ }
+ }
+ },
+ {
+ "license": {
+ "name": "declared license file: LICENSE.APACHE",
+ "text": {
+ "content": "\n Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n https://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n",
+ "contentType": "text/plain"
+ }
+ }
+ },
+ {
+ "license": {
+ "name": "declared license file: LICENSE.BSD",
+ "text": {
+ "content": "Copyright (c) Individual contributors.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n 3. Neither the name of PyCA Cryptography nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
+ "contentType": "text/plain"
+ }
+ }
+ }
+ ]
+ },
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "other",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -274,6 +345,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -290,6 +364,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.3.xml.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.3.xml.bin
index 8a3317e0..9b24df2c 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.3.xml.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.3.xml.bin
@@ -376,6 +376,285 @@ SPDX-License-Identifier: BSD-2-Clause
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
+
+
+ declared license file: LICENSE
+ This software is made available under the terms of *either* of the licenses
+found in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made
+under the terms of *both* these licenses.
+
+
+
+ declared license file: LICENSE.APACHE
+
+ Apache License
+ Version 2.0, January 2004
+ https://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+
+ declared license file: LICENSE.BSD
+ Copyright (c) Individual contributors.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of PyCA Cryptography nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+
+
+
jsonpointer
2.4
@@ -1000,6 +1279,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
@@ -1008,6 +1288,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.4.json.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.4.json.bin
index f0d6d795..86a8bff2 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.4.json.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.4.json.bin
@@ -100,6 +100,77 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "evidence": {
+ "licenses": [
+ {
+ "license": {
+ "name": "declared license file: LICENSE",
+ "text": {
+ "content": "This software is made available under the terms of *either* of the licenses\nfound in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made\nunder the terms of *both* these licenses.\n",
+ "contentType": "text/plain"
+ }
+ }
+ },
+ {
+ "license": {
+ "name": "declared license file: LICENSE.APACHE",
+ "text": {
+ "content": "\n Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n https://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n",
+ "contentType": "text/plain"
+ }
+ }
+ },
+ {
+ "license": {
+ "name": "declared license file: LICENSE.BSD",
+ "text": {
+ "content": "Copyright (c) Individual contributors.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n 3. Neither the name of PyCA Cryptography nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
+ "contentType": "text/plain"
+ }
+ }
+ }
+ ]
+ },
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -274,6 +345,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -290,6 +364,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.4.xml.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.4.xml.bin
index d662a2e9..0715f363 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.4.xml.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.4.xml.bin
@@ -403,6 +403,285 @@ SPDX-License-Identifier: BSD-2-Clause
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
+
+
+ declared license file: LICENSE
+ This software is made available under the terms of *either* of the licenses
+found in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made
+under the terms of *both* these licenses.
+
+
+
+ declared license file: LICENSE.APACHE
+
+ Apache License
+ Version 2.0, January 2004
+ https://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+
+ declared license file: LICENSE.BSD
+ Copyright (c) Individual contributors.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of PyCA Cryptography nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+
+
+
jsonpointer
2.4
@@ -1027,6 +1306,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
@@ -1035,6 +1315,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.5.json.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.5.json.bin
index 7a476be5..0f124276 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.5.json.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.5.json.bin
@@ -100,6 +100,77 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "evidence": {
+ "licenses": [
+ {
+ "license": {
+ "name": "declared license file: LICENSE",
+ "text": {
+ "content": "This software is made available under the terms of *either* of the licenses\nfound in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made\nunder the terms of *both* these licenses.\n",
+ "contentType": "text/plain"
+ }
+ }
+ },
+ {
+ "license": {
+ "name": "declared license file: LICENSE.APACHE",
+ "text": {
+ "content": "\n Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n https://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n",
+ "contentType": "text/plain"
+ }
+ }
+ },
+ {
+ "license": {
+ "name": "declared license file: LICENSE.BSD",
+ "text": {
+ "content": "Copyright (c) Individual contributors.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n 3. Neither the name of PyCA Cryptography nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
+ "contentType": "text/plain"
+ }
+ }
+ }
+ ]
+ },
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -274,6 +345,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -290,6 +364,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.5.xml.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.5.xml.bin
index aa4f57bd..5df63646 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.5.xml.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.5.xml.bin
@@ -413,6 +413,285 @@ SPDX-License-Identifier: BSD-2-Clause
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
+
+
+ declared license file: LICENSE
+ This software is made available under the terms of *either* of the licenses
+found in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made
+under the terms of *both* these licenses.
+
+
+
+ declared license file: LICENSE.APACHE
+
+ Apache License
+ Version 2.0, January 2004
+ https://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+
+ declared license file: LICENSE.BSD
+ Copyright (c) Individual contributors.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of PyCA Cryptography nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+
+
+
jsonpointer
2.4
@@ -1037,6 +1316,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
@@ -1045,6 +1325,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.6.json.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.6.json.bin
index 82c263fd..59233be0 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.6.json.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.6.json.bin
@@ -106,6 +106,81 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "evidence": {
+ "licenses": [
+ {
+ "license": {
+ "acknowledgement": "declared",
+ "name": "declared license file: LICENSE",
+ "text": {
+ "content": "This software is made available under the terms of *either* of the licenses\nfound in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made\nunder the terms of *both* these licenses.\n",
+ "contentType": "text/plain"
+ }
+ }
+ },
+ {
+ "license": {
+ "acknowledgement": "declared",
+ "name": "declared license file: LICENSE.APACHE",
+ "text": {
+ "content": "\n Apache License\n Version 2.0, January 2004\n https://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n https://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n",
+ "contentType": "text/plain"
+ }
+ }
+ },
+ {
+ "license": {
+ "acknowledgement": "declared",
+ "name": "declared license file: LICENSE.BSD",
+ "text": {
+ "content": "Copyright (c) Individual contributors.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n 1. Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n 3. Neither the name of PyCA Cryptography nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
+ "contentType": "text/plain"
+ }
+ }
+ }
+ ]
+ },
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "acknowledgement": "declared",
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -294,6 +369,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -310,6 +388,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.6.xml.bin b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.6.xml.bin
index ea99762c..256567cf 100644
--- a/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.6.xml.bin
+++ b/tests/_data/snapshots/environment/pep639-texts_with-license-pep639_1.6.xml.bin
@@ -413,6 +413,285 @@ SPDX-License-Identifier: BSD-2-Clause
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
+
+
+ declared license file: LICENSE
+ This software is made available under the terms of *either* of the licenses
+found in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made
+under the terms of *both* these licenses.
+
+
+
+ declared license file: LICENSE.APACHE
+
+ Apache License
+ Version 2.0, January 2004
+ https://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+
+
+ declared license file: LICENSE.BSD
+ Copyright (c) Individual contributors.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of PyCA Cryptography nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+
+
+
jsonpointer
2.4
@@ -1037,6 +1316,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
@@ -1045,6 +1325,7 @@ The isoschematron implementation uses several XSL and RelaxNG resources:
+
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.0.xml.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.0.xml.bin
index 30926376..54603ea9 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.0.xml.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.0.xml.bin
@@ -15,6 +15,13 @@
pkg:pypi/boolean.py@4.0
false
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+ pkg:pypi/cryptography@43.0.1
+ false
+
jsonpointer
2.4
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.1.xml.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.1.xml.bin
index ad814a1a..90bf13ba 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.1.xml.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.1.xml.bin
@@ -51,6 +51,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.2.json.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.2.json.bin
index 2b07c487..a490f228 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.2.json.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.2.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "other",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.2.xml.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.2.xml.bin
index 1fd52e17..ad110407 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.2.xml.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.2.xml.bin
@@ -70,6 +70,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -136,6 +167,7 @@
+
@@ -144,6 +176,7 @@
+
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.3.json.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.3.json.bin
index d6f567cc..2f0fca0f 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.3.json.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.3.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "other",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.3.xml.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.3.xml.bin
index 2adf6f34..1ef1b888 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.3.xml.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.3.xml.bin
@@ -73,6 +73,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -139,6 +170,7 @@
+
@@ -147,6 +179,7 @@
+
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.4.json.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.4.json.bin
index 3bc42630..80bc8b12 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.4.json.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.4.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.4.xml.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.4.xml.bin
index a626ad20..461d8e5b 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.4.xml.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.4.xml.bin
@@ -100,6 +100,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -166,6 +197,7 @@
+
@@ -174,6 +206,7 @@
+
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.5.json.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.5.json.bin
index d7a420f7..1167224c 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.5.json.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.5.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.5.xml.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.5.xml.bin
index 600ad957..3a0a7dbb 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.5.xml.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.5.xml.bin
@@ -110,6 +110,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -176,6 +207,7 @@
+
@@ -184,6 +216,7 @@
+
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.6.json.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.6.json.bin
index 35f60e13..a2325d5b 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.6.json.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.6.json.bin
@@ -66,6 +66,47 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "acknowledgement": "declared",
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -164,6 +205,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -180,6 +224,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.6.xml.bin b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.6.xml.bin
index c75ea33b..45626504 100644
--- a/tests/_data/snapshots/environment/pep639_with-license-pep639_1.6.xml.bin
+++ b/tests/_data/snapshots/environment/pep639_with-license-pep639_1.6.xml.bin
@@ -110,6 +110,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -176,6 +207,7 @@
+
@@ -184,6 +216,7 @@
+
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.0.xml.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.0.xml.bin
index 30926376..54603ea9 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.0.xml.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.0.xml.bin
@@ -15,6 +15,13 @@
pkg:pypi/boolean.py@4.0
false
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+ pkg:pypi/cryptography@43.0.1
+ false
+
jsonpointer
2.4
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.1.xml.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.1.xml.bin
index ad814a1a..90bf13ba 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.1.xml.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.1.xml.bin
@@ -51,6 +51,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.2.json.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.2.json.bin
index 2b07c487..a490f228 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.2.json.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.2.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "other",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.2.xml.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.2.xml.bin
index 1fd52e17..ad110407 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.2.xml.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.2.xml.bin
@@ -70,6 +70,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -136,6 +167,7 @@
+
@@ -144,6 +176,7 @@
+
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.3.json.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.3.json.bin
index d6f567cc..2f0fca0f 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.3.json.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.3.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "other",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.3.xml.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.3.xml.bin
index 2adf6f34..1ef1b888 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.3.xml.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.3.xml.bin
@@ -73,6 +73,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -139,6 +170,7 @@
+
@@ -147,6 +179,7 @@
+
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.4.json.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.4.json.bin
index 3bc42630..80bc8b12 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.4.json.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.4.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.4.xml.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.4.xml.bin
index a626ad20..461d8e5b 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.4.xml.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.4.xml.bin
@@ -100,6 +100,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -166,6 +197,7 @@
+
@@ -174,6 +206,7 @@
+
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.5.json.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.5.json.bin
index d7a420f7..1167224c 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.5.json.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.5.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.5.xml.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.5.xml.bin
index 600ad957..3a0a7dbb 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.5.xml.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.5.xml.bin
@@ -110,6 +110,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -176,6 +207,7 @@
+
@@ -184,6 +216,7 @@
+
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.6.json.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.6.json.bin
index 35f60e13..a2325d5b 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.6.json.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.6.json.bin
@@ -66,6 +66,47 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "acknowledgement": "declared",
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -164,6 +205,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -180,6 +224,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/plain_with-license-pep639_1.6.xml.bin b/tests/_data/snapshots/environment/plain_with-license-pep639_1.6.xml.bin
index c75ea33b..45626504 100644
--- a/tests/_data/snapshots/environment/plain_with-license-pep639_1.6.xml.bin
+++ b/tests/_data/snapshots/environment/plain_with-license-pep639_1.6.xml.bin
@@ -110,6 +110,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -176,6 +207,7 @@
+
@@ -184,6 +216,7 @@
+
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.0.xml.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.0.xml.bin
index 30926376..54603ea9 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.0.xml.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.0.xml.bin
@@ -15,6 +15,13 @@
pkg:pypi/boolean.py@4.0
false
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+ pkg:pypi/cryptography@43.0.1
+ false
+
jsonpointer
2.4
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.1.xml.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.1.xml.bin
index ad814a1a..90bf13ba 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.1.xml.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.1.xml.bin
@@ -51,6 +51,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.2.json.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.2.json.bin
index 2b07c487..a490f228 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.2.json.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.2.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "other",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.2.xml.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.2.xml.bin
index 1fd52e17..ad110407 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.2.xml.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.2.xml.bin
@@ -70,6 +70,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -136,6 +167,7 @@
+
@@ -144,6 +176,7 @@
+
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.3.json.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.3.json.bin
index d6f567cc..2f0fca0f 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.3.json.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.3.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "other",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.3.xml.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.3.xml.bin
index 2adf6f34..1ef1b888 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.3.xml.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.3.xml.bin
@@ -73,6 +73,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -139,6 +170,7 @@
+
@@ -147,6 +179,7 @@
+
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.4.json.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.4.json.bin
index 3bc42630..80bc8b12 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.4.json.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.4.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.4.xml.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.4.xml.bin
index a626ad20..461d8e5b 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.4.xml.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.4.xml.bin
@@ -100,6 +100,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -166,6 +197,7 @@
+
@@ -174,6 +206,7 @@
+
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.5.json.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.5.json.bin
index d7a420f7..1167224c 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.5.json.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.5.json.bin
@@ -64,6 +64,46 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -157,6 +197,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -173,6 +216,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.5.xml.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.5.xml.bin
index 600ad957..3a0a7dbb 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.5.xml.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.5.xml.bin
@@ -110,6 +110,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -176,6 +207,7 @@
+
@@ -184,6 +216,7 @@
+
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.6.json.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.6.json.bin
index 35f60e13..a2325d5b 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.6.json.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.6.json.bin
@@ -66,6 +66,47 @@
"type": "library",
"version": "4.0"
},
+ {
+ "bom-ref": "cryptography==43.0.1",
+ "description": "cryptography is a package which provides cryptographic recipes and primitives to Python developers.",
+ "externalReferences": [
+ {
+ "comment": "from packaging metadata Project-URL: documentation",
+ "type": "documentation",
+ "url": "https://cryptography.io/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: issues",
+ "type": "issue-tracker",
+ "url": "https://github.com/pyca/cryptography/issues"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: source",
+ "type": "other",
+ "url": "https://github.com/pyca/cryptography/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: changelog",
+ "type": "release-notes",
+ "url": "https://cryptography.io/en/latest/changelog/"
+ },
+ {
+ "comment": "from packaging metadata Project-URL: homepage",
+ "type": "website",
+ "url": "https://github.com/pyca/cryptography"
+ }
+ ],
+ "licenses": [
+ {
+ "acknowledgement": "declared",
+ "expression": "Apache-2.0 OR BSD-3-Clause"
+ }
+ ],
+ "name": "cryptography",
+ "purl": "pkg:pypi/cryptography@43.0.1",
+ "type": "library",
+ "version": "43.0.1"
+ },
{
"bom-ref": "jsonpointer==2.4",
"description": "Identify specific nodes in a JSON document (RFC 6901) ",
@@ -164,6 +205,9 @@
{
"ref": "boolean.py==4.0"
},
+ {
+ "ref": "cryptography==43.0.1"
+ },
{
"ref": "jsonpointer==2.4"
},
@@ -180,6 +224,7 @@
"dependsOn": [
"attrs==23.2.0",
"boolean.py==4.0",
+ "cryptography==43.0.1",
"jsonpointer==2.4",
"license-expression==30.3.0",
"lxml==5.3.0"
diff --git a/tests/_data/snapshots/environment/texts_with-license-pep639_1.6.xml.bin b/tests/_data/snapshots/environment/texts_with-license-pep639_1.6.xml.bin
index c75ea33b..45626504 100644
--- a/tests/_data/snapshots/environment/texts_with-license-pep639_1.6.xml.bin
+++ b/tests/_data/snapshots/environment/texts_with-license-pep639_1.6.xml.bin
@@ -110,6 +110,37 @@
+
+ cryptography
+ 43.0.1
+ cryptography is a package which provides cryptographic recipes and primitives to Python developers.
+
+ Apache-2.0 OR BSD-3-Clause
+
+ pkg:pypi/cryptography@43.0.1
+
+
+ https://cryptography.io/
+ from packaging metadata Project-URL: documentation
+
+
+ https://github.com/pyca/cryptography/issues
+ from packaging metadata Project-URL: issues
+
+
+ https://github.com/pyca/cryptography/
+ from packaging metadata Project-URL: source
+
+
+ https://cryptography.io/en/latest/changelog/
+ from packaging metadata Project-URL: changelog
+
+
+ https://github.com/pyca/cryptography
+ from packaging metadata Project-URL: homepage
+
+
+
jsonpointer
2.4
@@ -176,6 +207,7 @@
+
@@ -184,6 +216,7 @@
+