aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/arduino
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2019-09-04 13:59:22 +0800
committerPeter Hoeg <peter@hoeg.com>2019-09-04 13:59:22 +0800
commit501e5bd1e847eb0e7f5c9d00ac5b4d526ea8b8a8 (patch)
treeff90c22f4212bb3794cfb5e0f9e7641e92cec99b /pkgs/development/arduino
parent8edc31aa351ce0f73bfbaecdcdafed054e2daf2b (diff)
platformio: 3.6.6 -> 4.0.3
Diffstat (limited to 'pkgs/development/arduino')
-rw-r--r--pkgs/development/arduino/platformio/chrootenv.nix15
-rw-r--r--pkgs/development/arduino/platformio/core.nix8
-rw-r--r--pkgs/development/arduino/platformio/fix-searchpath.patch6
3 files changed, 10 insertions, 19 deletions
diff --git a/pkgs/development/arduino/platformio/chrootenv.nix b/pkgs/development/arduino/platformio/chrootenv.nix
index 182f8fbefab..01a2fb873aa 100644
--- a/pkgs/development/arduino/platformio/chrootenv.nix
+++ b/pkgs/development/arduino/platformio/chrootenv.nix
@@ -3,19 +3,8 @@
let
pio-pkgs = pkgs:
let
- python = pkgs.python.override {
+ python = pkgs.python3.override {
packageOverrides = self: super: {
-
- # https://github.com/platformio/platformio-core/issues/349
- click = super.click.overridePythonAttrs (oldAttrs: rec {
- version = "5.1";
- src = oldAttrs.src.override {
- inherit version;
- sha256 = "678c98275431fad324275dec63791e4a17558b40e5a110e20a82866139a85a5a";
- };
- postPatch = "";
- });
-
platformio = self.callPackage ./core.nix { };
};
};
@@ -38,7 +27,7 @@ in buildFHSUserEnv {
meta = with lib; {
description = "An open source ecosystem for IoT development";
- homepage = http://platformio.org;
+ homepage = "https://platformio.org";
maintainers = with maintainers; [ mog ];
license = licenses.asl20;
platforms = with platforms; linux;
diff --git a/pkgs/development/arduino/platformio/core.nix b/pkgs/development/arduino/platformio/core.nix
index 0866311ad89..bfe216c6ad3 100644
--- a/pkgs/development/arduino/platformio/core.nix
+++ b/pkgs/development/arduino/platformio/core.nix
@@ -1,7 +1,7 @@
{ stdenv, lib, buildPythonApplication, fetchFromGitHub
, bottle, click, colorama
, lockfile, pyserial, requests
-, pytest, semantic-version, tox
+, pytest, semantic-version, tox, tabulate
, git
}:
@@ -35,6 +35,7 @@ let
"test_builder.py::test_build_unflags"
"test_misc.py::test_api_cache"
"test_misc.py::test_ping_internet_ips"
+ "test_misc.py::test_platformio_cli"
"test_pkgmanifest.py::test_packages"
]) ++ (map (e: "--ignore=tests/${e}") [
"commands/test_boards.py"
@@ -46,19 +47,20 @@ let
in buildPythonApplication rec {
pname = "platformio";
- version = "3.6.6";
+ version = "4.0.3";
# 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 = "1qwd6684y2xagl375sv8fm6a535hcdqx296hknjlbvsgc1jc514a";
+ sha256 = "1naaa53cc7n7zyqggqjvvgkcq8cyzngdf904y9ag0x1vvb70f8j9";
};
propagatedBuildInputs = [
bottle click colorama git lockfile
pyserial requests semantic-version
+ tabulate
];
HOME = "/tmp";
diff --git a/pkgs/development/arduino/platformio/fix-searchpath.patch b/pkgs/development/arduino/platformio/fix-searchpath.patch
index a215ffc7d61..1570cae1b19 100644
--- a/pkgs/development/arduino/platformio/fix-searchpath.patch
+++ b/pkgs/development/arduino/platformio/fix-searchpath.patch
@@ -1,6 +1,6 @@
---- ./platformio/util.py-old 2017-09-29 01:20:08.174548250 +0200
-+++ ./platformio/util.py 2017-09-29 01:19:48.410485308 +0200
-@@ -395,7 +395,7 @@
+--- ./platformio/proc.py-old 2017-09-29 01:20:08.174548250 +0200
++++ ./platformio/proc.py 2017-09-29 01:19:48.410485308 +0200
+@@ -164,7 +164,7 @@
isdir(join(p, "click")) or isdir(join(p, "platformio")))
if all(conditions):
_PYTHONPATH.append(p)