diff options
Diffstat (limited to 'pkgs/development/arduino/platformio/use-local-spdx-license-list.patch')
-rw-r--r-- | pkgs/development/arduino/platformio/use-local-spdx-license-list.patch | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/pkgs/development/arduino/platformio/use-local-spdx-license-list.patch b/pkgs/development/arduino/platformio/use-local-spdx-license-list.patch index 953eb3c9289..e0016adcf7d 100644 --- a/pkgs/development/arduino/platformio/use-local-spdx-license-list.patch +++ b/pkgs/development/arduino/platformio/use-local-spdx-license-list.patch @@ -1,16 +1,15 @@ diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py -index be49b3ee..d1390a88 100644 +index addc4c5..514b0ad 100644 --- a/platformio/package/manifest/schema.py +++ b/platformio/package/manifest/schema.py -@@ -240,9 +240,5 @@ class ManifestSchema(BaseSchema): +@@ -253,9 +253,4 @@ class ManifestSchema(BaseSchema): @staticmethod @memoized(expire="1h") def load_spdx_licenses(): -- r = requests.get( -- "https://raw.githubusercontent.com/spdx/license-list-data" -- "/v3.9/json/licenses.json" +- version = "3.12" +- spdx_data_url = ( +- "https://raw.githubusercontent.com/spdx/license-list-data/" +- "v%s/json/licenses.json" % version - ) -- r.raise_for_status() -- return r.json() -+ import json +- return json.loads(fetch_remote_content(spdx_data_url)) + return json.load(open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json")) |