2020-07-18 16:06:22 +00:00
|
|
|
{ stdenv, python37Packages, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
with python37Packages; buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nrfutil";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NordicSemiconductor";
|
|
|
|
repo = "pc-nrfutil";
|
|
|
|
rev = "v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "0g43lf5jmk0qxb7r4h68wr38fli6pjjk67w8l2cpdm9rd8jz4lpn";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
propagatedBuildInputs = [ pc-ble-driver-py six pyserial enum34 click ecdsa
|
2020-04-24 23:36:52 +00:00
|
|
|
protobuf tqdm piccata pyspinel intelhex pyyaml crcmod libusb1 ipaddress ];
|
|
|
|
|
|
|
|
checkInputs = [ nose behave ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
mkdir test-reports
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|