mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
17 lines
648 B
Diff
17 lines
648 B
Diff
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
|
|
index be49b3ee..d1390a88 100644
|
|
--- a/platformio/package/manifest/schema.py
|
|
+++ b/platformio/package/manifest/schema.py
|
|
@@ -240,9 +240,5 @@ class ManifestSchema(BaseSchema):
|
|
@staticmethod
|
|
@memoized(expire="1h")
|
|
def load_spdx_licenses():
|
|
- r = requests.get(
|
|
- "https://raw.githubusercontent.com/spdx/license-list-data"
|
|
- "/v3.8/json/licenses.json"
|
|
- )
|
|
- r.raise_for_status()
|
|
- return r.json()
|
|
+ import json
|
|
+ return json.load(open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json"))
|