1{ lib, python3Packages, fetchPypi, git, mercurial }:
2
3with python3Packages;
4
5buildPythonApplication rec {
6 pname = "mbed-cli";
7 version = "1.10.5";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "sha256-X+hNVM8fsy0VFTqFr1pPKWRimacBenTcY4y+PBJpvlI=";
12 };
13
14 nativeCheckInputs = [
15 git
16 mercurial
17 pytest
18 ];
19
20 checkPhase = ''
21 export GIT_COMMITTER_NAME=nixbld
22 export EMAIL=nixbld@localhost
23 export GIT_COMMITTER_DATE=$SOURCE_DATE_EPOCH
24 pytest test
25 '';
26
27 meta = with lib; {
28 homepage = "https://github.com/ARMmbed/mbed-cli";
29 description = "Arm Mbed Command Line Interface";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ ];
32 };
33}
34