2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
2023-04-12 12:48:02 +00:00
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-05-29 06:06:01 +00:00
|
|
|
pname = "tockloader";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.9.0";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-05-29 06:06:01 +00:00
|
|
|
inherit pname version;
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-7W55jugVtamFUL8N3dD1LFLJP2UDQb74V6o96rd/tEg=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-05-29 06:06:01 +00:00
|
|
|
argcomplete
|
|
|
|
colorama
|
|
|
|
crcmod
|
2023-04-12 12:48:02 +00:00
|
|
|
pycryptodome
|
2020-05-29 06:06:01 +00:00
|
|
|
pyserial
|
2023-04-12 12:48:02 +00:00
|
|
|
questionary
|
|
|
|
toml
|
2021-05-03 20:48:10 +00:00
|
|
|
tqdm
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
# Project has no test suite
|
2021-05-03 20:48:10 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
$out/bin/tockloader --version | grep -q ${version}
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
meta = with lib; {
|
2023-04-12 12:48:02 +00:00
|
|
|
description = "Tool for programming Tock onto hardware boards";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tockloader";
|
2020-05-29 06:06:01 +00:00
|
|
|
homepage = "https://github.com/tock/tockloader";
|
2023-04-12 12:48:02 +00:00
|
|
|
changelog = "https://github.com/tock/tockloader/releases/tag/v${version}";
|
2020-05-29 06:06:01 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|