Unverified Commit 81adf0a3 authored by Jasi's avatar Jasi
Browse files

m1n1: enable tests

parent c6de7f54
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -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 { };
  };