Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 42 lines 861 B view raw
1{ lib 2, python3 3, fetchPypi 4}: 5 6python3.pkgs.buildPythonApplication rec { 7 pname = "tockloader"; 8 version = "1.9.0"; 9 10 src = fetchPypi { 11 inherit pname version; 12 hash = "sha256-7W55jugVtamFUL8N3dD1LFLJP2UDQb74V6o96rd/tEg="; 13 }; 14 15 propagatedBuildInputs = with python3.pkgs; [ 16 argcomplete 17 colorama 18 crcmod 19 pycryptodome 20 pyserial 21 questionary 22 toml 23 tqdm 24 ]; 25 26 # Project has no test suite 27 checkPhase = '' 28 runHook preCheck 29 $out/bin/tockloader --version | grep -q ${version} 30 runHook postCheck 31 ''; 32 33 meta = with lib; { 34 description = "Tool for programming Tock onto hardware boards"; 35 mainProgram = "tockloader"; 36 homepage = "https://github.com/tock/tockloader"; 37 changelog = "https://github.com/tock/tockloader/releases/tag/v${version}"; 38 license = licenses.mit; 39 maintainers = [ ]; 40 }; 41} 42