2019-02-19 20:43:18 +01:00
|
|
|
{ lib, python3Packages, git, mercurial }:
|
2019-01-14 23:47:12 +01:00
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "mbed-cli";
|
2019-02-16 21:06:03 +01:00
|
|
|
version = "1.9.1";
|
2019-01-14 23:47:12 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-16 21:06:03 +01:00
|
|
|
sha256 = "1228plh55id03qywsw0ai88ypdpbh9iz18jfcyhn21pci7mj77fv";
|
2019-01-14 23:47:12 +01:00
|
|
|
};
|
|
|
|
|
2019-02-19 20:43:18 +01:00
|
|
|
checkInputs = [
|
|
|
|
git
|
|
|
|
mercurial
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export GIT_COMMITTER_NAME=nixbld
|
|
|
|
export EMAIL=nixbld@localhost
|
|
|
|
export GIT_COMMITTER_DATE=$SOURCE_DATE_EPOCH
|
|
|
|
pytest test
|
|
|
|
'';
|
2019-01-14 23:47:12 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/ARMmbed/mbed-cli;
|
|
|
|
description = "Arm Mbed Command Line Interface";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|