depot/third_party/nixpkgs/pkgs/development/tools/misc/tockloader/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

40 lines
848 B
Nix

{ lib
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "tockloader";
version = "1.9.0";
src = python3.pkgs.fetchPypi {
inherit pname version;
hash = "sha256-7W55jugVtamFUL8N3dD1LFLJP2UDQb74V6o96rd/tEg=";
};
propagatedBuildInputs = with python3.pkgs; [
argcomplete
colorama
crcmod
pycryptodome
pyserial
questionary
toml
tqdm
];
# Project has no test suite
checkPhase = ''
runHook preCheck
$out/bin/tockloader --version | grep -q ${version}
runHook postCheck
'';
meta = with lib; {
description = "Tool for programming Tock onto hardware boards";
homepage = "https://github.com/tock/tockloader";
changelog = "https://github.com/tock/tockloader/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}