about summary refs log tree commit diff
path: root/pkgs/development/embedded/platformio/use-local-spdx-license-list.patch
blob: ba9b55b788a1bc7a208a9406a03eefb8a5902f8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
index 95e08108..6c2cfaed 100644
--- a/platformio/package/manifest/schema.py
+++ b/platformio/package/manifest/schema.py
@@ -276,9 +276,6 @@ class ManifestSchema(BaseSchema):
     @staticmethod
     @memoized(expire="1h")
     def load_spdx_licenses():
-        version = "3.21"
-        spdx_data_url = (
-            "https://raw.githubusercontent.com/spdx/license-list-data/"
-            f"v{version}/json/licenses.json"
-        )
-        return json.loads(fetch_remote_content(spdx_data_url))
+        with open("@spdx_license_list_data@/json/licenses.json") as fd:
+            spdx = json.load(fd)
+        return spdx