summary refs log tree commit diff
path: root/pkgs/development/tools/mbed-cli/default.nix
blob: 127fa1bef863f54ce556b281cef9cfbd685015db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, python3Packages, git, mercurial }:

with python3Packages;

buildPythonApplication rec {
  pname = "mbed-cli";
  version = "1.9.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1228plh55id03qywsw0ai88ypdpbh9iz18jfcyhn21pci7mj77fv";
  };

  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";
    description = "Arm Mbed Command Line Interface";
    license = licenses.asl20;
    maintainers = with maintainers; [ rvolosatovs ];
  };
}