mbed-cli: Enable tests

This commit is contained in:
worldofpeace 2019-02-19 20:43:18 +01:00 committed by Roman Volosatovs
parent 15b1356539
commit dd4a1c1d66
No known key found for this signature in database
GPG Key ID: 3AC661943D80C89E

View File

@ -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;