nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 33 lines 933 B view raw
1{ stdenv, python2Packages, fetchFromGitHub }: 2 3with python2Packages; buildPythonApplication rec { 4 pname = "nrfutil"; 5 version = "5.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "NordicSemiconductor"; 9 repo = "pc-nrfutil"; 10 rev = "v${version}"; 11 sha256 = "1hajjgz8r4fjbwqr22p5dvb6k83dpxf8k7mhx20gkbrrx9ivqh79"; 12 }; 13 14 propagatedBuildInputs = [ pc-ble-driver-py six pyserial enum34 click ecdsa 15 protobuf tqdm piccata pyspinel intelhex pyyaml crcmod libusb1 ipaddress ]; 16 17 checkInputs = [ nose behave ]; 18 19 postPatch = '' 20 # remove version bound on pyyaml 21 sed -i /pyyaml/d requirements.txt 22 23 mkdir test-reports 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "Device Firmware Update tool for nRF chips"; 28 homepage = "https://github.com/NordicSemiconductor/pc-nrfutil"; 29 license = licenses.unfreeRedistributable; 30 platforms = platforms.unix; 31 maintainers = with maintainers; [ gebner ]; 32 }; 33}