mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
35 lines
692 B
Nix
35 lines
692 B
Nix
{ lib, python3Packages, git, mercurial }:
|
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
pname = "mbed-cli";
|
|
version = "1.9.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1228plh55id03qywsw0ai88ypdpbh9iz18jfcyhn21pci7mj77fv";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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; [ ];
|
|
};
|
|
}
|
|
|