2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
}:
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "tockloader";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "1.6.0";
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "1aqkj1nplcw3gmklrhq6vxy6v9ad5mqiw4y1svasak2zkqdk1wyc";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
argcomplete
|
|
|
|
colorama
|
|
|
|
crcmod
|
|
|
|
pyserial
|
2021-05-03 20:48:10 +00:00
|
|
|
pytoml
|
|
|
|
tqdm
|
2020-05-29 06:06:01 +00:00
|
|
|
];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
# has no test suite
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
$out/bin/tockloader --version | grep -q ${version}
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/tock/tockloader";
|
|
|
|
license = licenses.mit;
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Tool for programming Tock onto hardware boards";
|
2021-05-03 20:48:10 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|