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