nixpkgs/pkgs/development/arduino/platformio/use-local-spdx-license-list.patch

16 lines
669 B
Diff
Raw Permalink Normal View History

2020-01-19 22:51:45 +00:00
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
2021-03-18 09:47:35 +00:00
index addc4c5..514b0ad 100644
2020-01-19 22:51:45 +00:00
--- a/platformio/package/manifest/schema.py
+++ b/platformio/package/manifest/schema.py
2021-03-18 09:47:35 +00:00
@@ -253,9 +253,4 @@ class ManifestSchema(BaseSchema):
2020-01-19 22:51:45 +00:00
@staticmethod
@memoized(expire="1h")
def load_spdx_licenses():
2021-03-18 09:47:35 +00:00
- version = "3.12"
- spdx_data_url = (
- "https://raw.githubusercontent.com/spdx/license-list-data/"
- "v%s/json/licenses.json" % version
- )
2020-09-12 15:27:02 +00:00
- return json.loads(fetch_remote_content(spdx_data_url))
2020-01-19 22:51:45 +00:00
+ return json.load(open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json"))