tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Update platformio
BattleCh1cken
3 years ago
2b7997e9
24b7bdcd
+13
-7
2 changed files
expand all
collapse all
unified
split
pkgs
development
embedded
platformio
default.nix
use-local-spdx-license-list.patch
+4
-4
pkgs/development/embedded/platformio/default.nix
···
1
1
-
2
1
{ newScope, fetchFromGitHub }:
3
2
4
3
let
5
4
callPackage = newScope self;
6
5
7
7
-
version = "6.0.2";
6
6
+
version = "6.1.4";
8
7
9
8
# pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964
10
9
src = fetchFromGitHub {
11
10
owner = "platformio";
12
11
repo = "platformio-core";
13
12
rev = "v${version}";
14
14
-
sha256 = "sha256-yfUF9+M45ZSjmB275kTs8+/Q8Q5FMmr63e3Om8dPi2k=";
13
13
+
sha256 = "sha256-PLVsXnaflEZdn12lWrpnm8+uNfwB+T7JXnvjQihfuSs=";
15
14
};
16
15
17
16
self = {
18
17
platformio-chrootenv = callPackage ./chrootenv.nix { inherit version src; };
19
18
};
20
19
21
21
-
in self
20
20
+
in
21
21
+
self
+9
-3
pkgs/development/embedded/platformio/use-local-spdx-license-list.patch
···
1
1
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
2
2
-
index 416dccfd..896c3649 100644
2
2
+
index 1e5f935a..26d1ac6a 100644
3
3
--- a/platformio/package/manifest/schema.py
4
4
+++ b/platformio/package/manifest/schema.py
5
5
-
@@ -253,9 +253,6 @@ class ManifestSchema(BaseSchema):
5
5
+
@@ -276,9 +276,12 @@ class ManifestSchema(BaseSchema):
6
6
@staticmethod
7
7
@memoized(expire="1h")
8
8
def load_spdx_licenses():
9
9
-
- version = "3.17"
9
9
+
- version = "3.18"
10
10
- spdx_data_url = (
11
11
- "https://raw.githubusercontent.com/spdx/license-list-data/"
12
12
- "v%s/json/licenses.json" % version
13
13
- )
14
14
- return json.loads(fetch_remote_content(spdx_data_url))
15
15
+
+ # version = "3.18"
16
16
+
+ # spdx_data_url = (
17
17
+
+ # "https://raw.githubusercontent.com/spdx/license-list-data/"
18
18
+
+ # "v%s/json/licenses.json" % version
19
19
+
+ # )
20
20
+
+ # return json.loads(fetch_remote_content(spdx_data_url))
15
21
+ with open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json") as f:
16
22
+ spdx = json.load(f)
17
23
+ return spdx