m1n1: enable tests

This commit is contained in:
Jasi
2025-08-27 11:46:46 -04:00
parent c6de7f54e1
commit 81adf0a3f3
+20
View File
@@ -4,6 +4,7 @@
fetchFromGitHub,
imagemagick,
source-code-pro,
python3Packages,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -47,6 +48,25 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
nativeCheckInputs = with python3Packages; [
pytest
];
checkInputs = with python3Packages; [
construct
pyserial
];
checkPhase = ''
runHook preCheck
pytest
runHook postCheck
'';
passthru = {
updateScript = nix-update-script { };
};