diff --git a/cyclonedx_py/_internal/pipenv.py b/cyclonedx_py/_internal/pipenv.py
index 0c1d5997d..ed81a7975 100644
--- a/cyclonedx_py/_internal/pipenv.py
+++ b/cyclonedx_py/_internal/pipenv.py
@@ -198,8 +198,15 @@ def _make_bom(self, root_c: Optional['Component'],
return bom
def __is_local(self, data: 'NameDict') -> bool:
- if 'file' in data:
- location: str = data['file']
+ # a VCS dependency might point to a local repository,
+ # e.g. `git+file:///home/user/projects/my-project`
+ # see https://github.com/CycloneDX/cyclonedx-python/issues/1152
+ vcs_source = self.__package_vcs(data)
+ location: str
+ if vcs_source is not None:
+ location = vcs_source[1]
+ elif 'file' in data:
+ location = data['file']
elif 'path' in data:
location = data['path']
else:
diff --git a/tests/_data/infiles/pipenv/local-vcs/Pipfile b/tests/_data/infiles/pipenv/local-vcs/Pipfile
new file mode 100644
index 000000000..723600cef
--- /dev/null
+++ b/tests/_data/infiles/pipenv/local-vcs/Pipfile
@@ -0,0 +1,7 @@
+[pipenv]
+sort_pipfile = true
+
+[packages]
+my-project = {git = "git+file:///home/user/projects/my-project", ref = "da59ad000d1405eaecd557175e29083a87d19f7c"}
+
+[dev-packages]
diff --git a/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock b/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock
new file mode 100644
index 000000000..a08e51721
--- /dev/null
+++ b/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock
@@ -0,0 +1,23 @@
+{
+ "_meta": {
+ "hash": {
+ "sha256": "ebffa69a1fa192d1cef7cb42ad79231ca976565c5ce371a70160b3048d3cbc06"
+ },
+ "pipfile-spec": 6,
+ "requires": {},
+ "sources": [
+ {
+ "name": "pypi",
+ "url": "https://pypi.org/simple",
+ "verify_ssl": true
+ }
+ ]
+ },
+ "default": {
+ "my-project": {
+ "git": "git+file:///home/user/projects/my-project",
+ "ref": "da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ },
+ "develop": {}
+}
diff --git a/tests/_data/infiles/pipenv/local-vcs/pyproject.toml b/tests/_data/infiles/pipenv/local-vcs/pyproject.toml
new file mode 100644
index 000000000..0328d6899
--- /dev/null
+++ b/tests/_data/infiles/pipenv/local-vcs/pyproject.toml
@@ -0,0 +1,5 @@
+[project]
+# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/#declaring-project-metadata
+name = "local-vcs"
+version = "0.1.0"
+description = "packages from a local VCS repository"
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin
new file mode 100644
index 000000000..ab1892624
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin
@@ -0,0 +1,10 @@
+
+
+
+
+ my-project
+
+ false
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin
new file mode 100644
index 000000000..8eec614f7
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin
@@ -0,0 +1,15 @@
+
+
+
+
+ my-project
+
+
+
+ git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin
new file mode 100644
index 000000000..a8a659602
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin
@@ -0,0 +1,50 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-project",
+ "type": "library",
+ "version": ""
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-project"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from a local VCS repository",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "tools": [
+ {
+ "name": "cyclonedx-py",
+ "vendor": "CycloneDX",
+ "version": "thisVersion-testing"
+ },
+ {
+ "name": "cyclonedx-python-lib",
+ "vendor": "CycloneDX",
+ "version": "libVersion-testing"
+ }
+ ]
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.2b.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.2"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin
new file mode 100644
index 000000000..bcbee79a3
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin
@@ -0,0 +1,38 @@
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+ local-vcs
+ 0.1.0
+ packages from a local VCS repository
+
+
+
+
+ my-project
+
+
+
+ git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin
new file mode 100644
index 000000000..b52f6b9ce
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin
@@ -0,0 +1,62 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library",
+ "version": ""
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-project"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from a local VCS repository",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": [
+ {
+ "name": "cyclonedx-py",
+ "vendor": "CycloneDX",
+ "version": "thisVersion-testing"
+ },
+ {
+ "name": "cyclonedx-python-lib",
+ "vendor": "CycloneDX",
+ "version": "libVersion-testing"
+ }
+ ]
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.3a.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.3"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin
new file mode 100644
index 000000000..988b03e2a
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin
@@ -0,0 +1,44 @@
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+ local-vcs
+ 0.1.0
+ packages from a local VCS repository
+
+
+ true
+
+
+
+
+ my-project
+
+
+
+ git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin
new file mode 100644
index 000000000..3c9befcab
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin
@@ -0,0 +1,96 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-project"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from a local VCS repository",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": [
+ {
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "name": "cyclonedx-py",
+ "vendor": "CycloneDX",
+ "version": "thisVersion-testing"
+ },
+ {
+ "externalReferences": [ ],
+ "name": "cyclonedx-python-lib",
+ "vendor": "CycloneDX",
+ "version": "libVersion-testing"
+ }
+ ]
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.4.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.4"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin
new file mode 100644
index 000000000..5c97b94a1
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin
@@ -0,0 +1,70 @@
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+ local-vcs
+ 0.1.0
+ packages from a local VCS repository
+
+
+ true
+
+
+
+
+ my-project
+
+
+ git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin
new file mode 100644
index 000000000..0c3a43258
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin
@@ -0,0 +1,110 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-project"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from a local VCS repository",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": {
+ "components": [
+ {
+ "description": "CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments",
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "group": "CycloneDX",
+ "licenses": [
+ {
+ "license": {
+ "id": "Apache-2.0"
+ }
+ }
+ ],
+ "name": "cyclonedx-py",
+ "type": "application",
+ "version": "thisVersion-testing"
+ },
+ {
+ "description": "stripped",
+ "externalReferences": [ ],
+ "group": "CycloneDX",
+ "licenses": [ ],
+ "name": "cyclonedx-python-lib",
+ "type": "library",
+ "version": "libVersion-testing"
+ }
+ ]
+ }
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.5"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin
new file mode 100644
index 000000000..ccec464c1
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+ CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments
+
+
+ Apache-2.0
+
+
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+
+
+
+ local-vcs
+ 0.1.0
+ packages from a local VCS repository
+
+
+ true
+
+
+
+
+ my-project
+
+
+ git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin
new file mode 100644
index 000000000..9587437bd
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin
@@ -0,0 +1,111 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-project"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from a local VCS repository",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": {
+ "components": [
+ {
+ "description": "CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments",
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "group": "CycloneDX",
+ "licenses": [
+ {
+ "license": {
+ "acknowledgement": "declared",
+ "id": "Apache-2.0"
+ }
+ }
+ ],
+ "name": "cyclonedx-py",
+ "type": "application",
+ "version": "thisVersion-testing"
+ },
+ {
+ "description": "stripped",
+ "externalReferences": [ ],
+ "group": "CycloneDX",
+ "licenses": [ ],
+ "name": "cyclonedx-python-lib",
+ "type": "library",
+ "version": "libVersion-testing"
+ }
+ ]
+ }
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.6"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin
new file mode 100644
index 000000000..6577c26c1
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+ CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments
+
+
+ Apache-2.0
+
+
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+
+
+
+ local-vcs
+ 0.1.0
+ packages from a local VCS repository
+
+
+ true
+
+
+
+
+ my-project
+
+
+ git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin
new file mode 100644
index 000000000..eb2f64749
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin
@@ -0,0 +1,111 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-project"
+ },
+ {
+ "ref": "root-component"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from a local VCS repository",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": {
+ "components": [
+ {
+ "description": "CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments",
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "group": "CycloneDX",
+ "licenses": [
+ {
+ "license": {
+ "acknowledgement": "declared",
+ "id": "Apache-2.0"
+ }
+ }
+ ],
+ "name": "cyclonedx-py",
+ "type": "application",
+ "version": "thisVersion-testing"
+ },
+ {
+ "description": "stripped",
+ "externalReferences": [ ],
+ "group": "CycloneDX",
+ "licenses": [ ],
+ "name": "cyclonedx-python-lib",
+ "type": "library",
+ "version": "libVersion-testing"
+ }
+ ]
+ }
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.7.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.7"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin
new file mode 100644
index 000000000..9a8a066fd
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+ CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments
+
+
+ Apache-2.0
+
+
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+
+
+
+ local-vcs
+ 0.1.0
+ packages from a local VCS repository
+
+
+ true
+
+
+
+
+ my-project
+
+
+ git+file:///home/user/projects/my-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+