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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
718 B
Diff
Raw 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
index 416dccfd..896c3649 100644
2020-01-19 22:51:45 +00:00
--- a/platformio/package/manifest/schema.py
+++ b/platformio/package/manifest/schema.py
@@ -253,9 +253,6 @@ class ManifestSchema(BaseSchema):
2020-01-19 22:51:45 +00:00
@staticmethod
@memoized(expire="1h")
def load_spdx_licenses():
2022-02-10 20:38:06 +00:00
- version = "3.16"
2021-03-18 09:47:35 +00:00
- 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))
+ with open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json") as f:
+ spdx = json.load(f)
+ return spdx