Skip to content

Commit

Permalink
platformio: 5.0.4 -> 5.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
oxzi authored and happysalada committed May 17, 2021
1 parent 9c6daed commit 7347900
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 15 deletions.
50 changes: 40 additions & 10 deletions pkgs/development/arduino/platformio/core.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
{ stdenv, lib, buildPythonApplication, bottle
, click, click-completion, colorama, semantic-version
, lockfile, pyserial, requests
, tabulate, pyelftools, marshmallow
, pytest, tox, jsondiff
, git, spdx-license-list-data
{ stdenv, lib, buildPythonApplication
, ajsonrpc
, bottle
, click
, click-completion
, colorama
, git
, jsondiff
, lockfile
, marshmallow
, pyelftools
, pyserial
, pytest
, requests
, semantic-version
, spdx-license-list-data
, starlette
, tabulate
, tox
, uvicorn
, wsproto
, zeroconf
, version, src
}:

Expand Down Expand Up @@ -78,10 +94,24 @@ in buildPythonApplication rec {
pname = "platformio";
inherit version src;

propagatedBuildInputs = [
bottle click click-completion colorama git
lockfile pyserial requests semantic-version
tabulate pyelftools marshmallow
propagatedBuildInputs = [
ajsonrpc
bottle
click
click-completion
colorama
git
lockfile
marshmallow
pyelftools
pyserial
requests
semantic-version
starlette
tabulate
uvicorn
wsproto
zeroconf
];

HOME = "/tmp";
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/arduino/platformio/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
let
callPackage = newScope self;

version = "5.0.4";
version = "5.1.1";

# pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964
src = fetchFromGitHub {
owner = "platformio";
repo = "platformio-core";
rev = "v${version}";
sha256 = "15jnhlhkk9z6cyzxw065r3080dqan951klwf65p152vfzg79wf84";
sha256 = "1m9vq5r4g04n3ckmb3hrrc4ar5v31k6isc76bw4glrn2xb7r8c00";
};

self = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
index f293ba5a..a818271f 100644
index addc4c5..514b0ad 100644
--- a/platformio/package/manifest/schema.py
+++ b/platformio/package/manifest/schema.py
@@ -252,5 +252,4 @@ class ManifestSchema(BaseSchema):
@@ -253,9 +253,4 @@ class ManifestSchema(BaseSchema):
@staticmethod
@memoized(expire="1h")
def load_spdx_licenses():
- spdx_data_url = "https://dl.bintray.com/platformio/dl-misc/spdx-licenses-3.json"
- version = "3.12"
- spdx_data_url = (
- "https://raw.githubusercontent.com/spdx/license-list-data/"
- "v%s/json/licenses.json" % version
- )
- return json.loads(fetch_remote_content(spdx_data_url))
+ return json.load(open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json"))

0 comments on commit 7347900

Please sign in to comment.