mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
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:
parent
57569ea9d0
commit
6fbe7f1bbb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user