Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 51 lines 1.1 kB view raw
1{ lib 2, fetchFromGitHub 3, python3 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "esptool"; 8 version = "4.5.1"; 9 10 src = fetchFromGitHub { 11 owner = "espressif"; 12 repo = "esptool"; 13 rev = "v${version}"; 14 hash = "sha256-FKFw7czXzC8F3OXjlLoJEFaqsSgqWz0ZEqd7KjCy5Ik="; 15 }; 16 17 propagatedBuildInputs = with python3.pkgs; [ 18 bitstring 19 cryptography 20 ecdsa 21 pyserial 22 reedsolo 23 ]; 24 25 nativeCheckInputs = with python3.pkgs; [ 26 pyelftools 27 pytestCheckHook 28 ]; 29 30 # tests mentioned in `.github/workflows/test_esptool.yml` 31 checkPhase = '' 32 runHook preCheck 33 34 pytest test/test_imagegen.py 35 pytest test/test_espsecure.py 36 pytest test/test_merge_bin.py 37 pytest test/test_image_info.py 38 pytest test/test_modules.py 39 40 runHook postCheck 41 ''; 42 43 meta = with lib; { 44 description = "ESP8266 and ESP32 serial bootloader utility"; 45 homepage = "https://github.com/espressif/esptool"; 46 license = licenses.gpl2Plus; 47 maintainers = with maintainers; [ dezgeg dotlambda ] ++ teams.lumiguide.members; 48 platforms = with platforms; linux ++ darwin; 49 mainProgram = "esptool.py"; 50 }; 51}