tockloader: 1.5.0 -> 1.6.0

Add a small check phase calling the tockloader executable and checking
the version.
This commit is contained in:
Martin Weinelt 2021-04-27 18:43:33 +02:00 committed by Frederik Rietdijk
parent 57569ea9d0
commit 6fbe7f1bbb

View File

@ -1,22 +1,32 @@
{ lib, python3Packages }:
{ lib
, python3Packages
}:
python3Packages.buildPythonApplication rec {
pname = "tockloader";
version = "1.5.0";
version = "1.6.0";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "11k4ppwq845lnj265ydfr0cn1rrym5amx2i19x1h3ccbxc3gsy3x";
sha256 = "1aqkj1nplcw3gmklrhq6vxy6v9ad5mqiw4y1svasak2zkqdk1wyc";
};
propagatedBuildInputs = with python3Packages; [
argcomplete
colorama
crcmod
pytoml
pyserial
pytoml
tqdm
];
# has no test suite
checkPhase = ''
runHook preCheck
$out/bin/tockloader --version | grep -q ${version}
runHook postCheck
'';
meta = with lib; {
homepage = "https://github.com/tock/tockloader";
license = licenses.mit;