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