Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.4 KiB
Nix
57 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
lit,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "outputcheck";
|
|
version = "0.4.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stp";
|
|
repo = "OutputCheck";
|
|
rev = "eab62a5dd5129f6a4ebfbe4bbe41d35611f7c48d";
|
|
hash = "sha256-0D5Lljn66jB/EW/ntC2eTuXAt0w0cceeeqf3aKuyeF0=";
|
|
};
|
|
|
|
# - Fix deprecated 'U' mode in python 3.11
|
|
# https://github.com/python/cpython/blob/3.11/Doc/library/functions.rst?plain=1#L1386
|
|
# - Fix expected error and actual parser error mismatch
|
|
# - Fix version number cannot find error
|
|
postPatch = ''
|
|
substituteInPlace OutputCheck/Driver.py \
|
|
--replace-fail "argparse.FileType('rU')" "argparse.FileType('r')"
|
|
|
|
substituteInPlace tests/invalid-regex-syntax.smt2 \
|
|
--replace-fail "unbalanced parenthesis" "missing ), unterminated subpattern"
|
|
|
|
echo ${version} > RELEASE-VERSION
|
|
'';
|
|
|
|
nativeCheckInputs = [ lit ];
|
|
|
|
build-system = with python3.pkgs; [ setuptools ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
lit -v tests/
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "OutputCheck" ];
|
|
|
|
meta = {
|
|
description = "Tool for checking tool output inspired by LLVM's FileCheck";
|
|
homepage = "https://github.com/stp/OutputCheck";
|
|
changelog = "https://github.com/stp/OutputCheck/releases/tag/${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ fsagbuya ];
|
|
mainProgram = "OutputCheck";
|
|
};
|
|
}
|