3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/nrfutil/default.nix
Sirio Balmelli c280c15805
nrfutil: python37Packages -> python3Packages
Clean up build so it tracks latest python3Packages,
instead of being pinned to python37Packages.

Nrfutil builds and works fine with python38.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
2021-02-12 13:08:43 +01:00

31 lines
846 B
Nix

{ lib, python3Packages, fetchFromGitHub }:
with python3Packages; buildPythonApplication rec {
pname = "nrfutil";
version = "6.1";
src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = "pc-nrfutil";
rev = "v${version}";
sha256 = "0g43lf5jmk0qxb7r4h68wr38fli6pjjk67w8l2cpdm9rd8jz4lpn";
};
propagatedBuildInputs = [ pc-ble-driver-py six pyserial enum34 click ecdsa
protobuf tqdm piccata pyspinel intelhex pyyaml crcmod libusb1 ipaddress ];
checkInputs = [ nose behave ];
postPatch = ''
mkdir test-reports
'';
meta = with 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 ];
};
}