summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/mb/mbed-cli/package.nix
blob: 5fee3ad3337ffb8971bcc154fc253b82dc8aac89 (plain)
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
35
36
37
38
39
40
{
  lib,
  python3Packages,
  fetchPypi,
  git,
  mercurial,
}:

with python3Packages;

buildPythonApplication (finalAttrs: {
  pname = "mbed-cli";
  version = "1.10.5";
  format = "setuptools";

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-X+hNVM8fsy0VFTqFr1pPKWRimacBenTcY4y+PBJpvlI=";
  };

  nativeCheckInputs = [
    git
    mercurial
    pytest
  ];

  checkPhase = ''
    export GIT_COMMITTER_NAME=nixbld
    export EMAIL=nixbld@localhost
    export GIT_COMMITTER_DATE=$SOURCE_DATE_EPOCH
    pytest test
  '';

  meta = {
    homepage = "https://github.com/ARMmbed/mbed-cli";
    description = "Arm Mbed Command Line Interface";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
})