diff options
author | worldofpeace <worldofpeace@users.noreply.github.com> | 2019-02-19 20:43:18 +0100 |
---|---|---|
committer | Roman Volosatovs <rvolosatovs@riseup.net> | 2019-02-19 20:45:53 +0100 |
commit | dd4a1c1d66826f3117e7ecef863f58d3a6c47c75 (patch) | |
tree | 396466867956a143ea7b9ce584594cd40d013e94 /pkgs/development/tools | |
parent | 15b1356539cbbd4cdaa513e2529a94cba0b2fc15 (diff) | |
download | nixlib-dd4a1c1d66826f3117e7ecef863f58d3a6c47c75.tar nixlib-dd4a1c1d66826f3117e7ecef863f58d3a6c47c75.tar.gz nixlib-dd4a1c1d66826f3117e7ecef863f58d3a6c47c75.tar.bz2 nixlib-dd4a1c1d66826f3117e7ecef863f58d3a6c47c75.tar.lz nixlib-dd4a1c1d66826f3117e7ecef863f58d3a6c47c75.tar.xz nixlib-dd4a1c1d66826f3117e7ecef863f58d3a6c47c75.tar.zst nixlib-dd4a1c1d66826f3117e7ecef863f58d3a6c47c75.zip |
mbed-cli: Enable tests
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/mbed-cli/default.nix | 15 |
1 files 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; |