nixpkgs/pkgs/development/tools/misc/nrfutil/default.nix

31 lines
846 B
Nix
Raw Normal View History

{ lib, python3Packages, fetchFromGitHub }:
2019-05-19 12:12:32 +02:00
with python3Packages; buildPythonApplication rec {
2019-05-19 12:12:32 +02:00
pname = "nrfutil";
2020-07-13 13:50:11 +02:00
version = "6.1";
2019-05-19 12:12:32 +02:00
src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = "pc-nrfutil";
rev = "v${version}";
2020-07-13 13:50:11 +02:00
sha256 = "0g43lf5jmk0qxb7r4h68wr38fli6pjjk67w8l2cpdm9rd8jz4lpn";
2019-05-19 12:12:32 +02:00
};
2020-07-13 13:50:11 +02:00
propagatedBuildInputs = [ pc-ble-driver-py six pyserial enum34 click ecdsa
2019-05-19 12:12:32 +02:00
protobuf tqdm piccata pyspinel intelhex pyyaml crcmod libusb1 ipaddress ];
checkInputs = [ nose behave ];
postPatch = ''
mkdir test-reports
'';
meta = with lib; {
2019-05-19 12:12:32 +02:00
description = "Device Firmware Update tool for nRF chips";
homepage = "https://github.com/NordicSemiconductor/pc-nrfutil";
license = licenses.unfreeRedistributable;
platforms = platforms.unix;
maintainers = with maintainers; [ gebner ];
};
}