From 15b1356539cbbd4cdaa513e2529a94cba0b2fc15 Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Sat, 16 Feb 2019 21:06:03 +0100 Subject: [PATCH 1/2] mbed-cli: 1.8.3 -> 1.9.1 --- pkgs/development/tools/mbed-cli/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/mbed-cli/default.nix b/pkgs/development/tools/mbed-cli/default.nix index 62489800cbbd..8b96d3a3011e 100644 --- a/pkgs/development/tools/mbed-cli/default.nix +++ b/pkgs/development/tools/mbed-cli/default.nix @@ -4,14 +4,14 @@ with python3Packages; buildPythonApplication rec { pname = "mbed-cli"; - version = "1.8.3"; + version = "1.9.1"; src = fetchPypi { inherit pname version; - sha256 = "04vn2v0d7y3vmm8cswzvn2z85balgp3095n5flvgf3r60fdlhlmp"; + sha256 = "1228plh55id03qywsw0ai88ypdpbh9iz18jfcyhn21pci7mj77fv"; }; - doCheck = false; # no tests available in Pypi + doCheck = false; # Tests cannot import mbed. meta = with lib; { homepage = https://github.com/ARMmbed/mbed-cli; From dd4a1c1d66826f3117e7ecef863f58d3a6c47c75 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Tue, 19 Feb 2019 20:43:18 +0100 Subject: [PATCH 2/2] mbed-cli: Enable tests --- pkgs/development/tools/mbed-cli/default.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/mbed-cli/default.nix b/pkgs/development/tools/mbed-cli/default.nix index 8b96d3a3011e..cd80a5ad9e6f 100644 --- a/pkgs/development/tools/mbed-cli/default.nix +++ b/pkgs/development/tools/mbed-cli/default.nix @@ -1,4 +1,4 @@ -{ lib, python3Packages }: +{ lib, python3Packages, git, mercurial }: with python3Packages; @@ -11,7 +11,18 @@ buildPythonApplication rec { sha256 = "1228plh55id03qywsw0ai88ypdpbh9iz18jfcyhn21pci7mj77fv"; }; - doCheck = false; # Tests cannot import mbed. + checkInputs = [ + git + mercurial + pytest + ]; + + checkPhase = '' + export GIT_COMMITTER_NAME=nixbld + export EMAIL=nixbld@localhost + export GIT_COMMITTER_DATE=$SOURCE_DATE_EPOCH + pytest test + ''; meta = with lib; { homepage = https://github.com/ARMmbed/mbed-cli;