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

12 lines
576 B
Diff
Raw Normal View History

2020-01-19 23:51:45 +01:00
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
2020-09-12 17:27:02 +02:00
index f293ba5a..a818271f 100644
2020-01-19 23:51:45 +01:00
--- a/platformio/package/manifest/schema.py
+++ b/platformio/package/manifest/schema.py
2020-09-12 17:27:02 +02:00
@@ -252,5 +252,4 @@ class ManifestSchema(BaseSchema):
2020-01-19 23:51:45 +01:00
@staticmethod
@memoized(expire="1h")
def load_spdx_licenses():
2020-09-12 17:27:02 +02:00
- spdx_data_url = "https://dl.bintray.com/platformio/dl-misc/spdx-licenses-3.json"
- return json.loads(fetch_remote_content(spdx_data_url))
2020-01-19 23:51:45 +01:00
+ return json.load(open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json"))