Files
proxy-suite-flake/nix/checks/parsers.nix
T
2026-04-19 11:02:55 +05:00

22 lines
646 B
Nix

{ pkgs }:
{
build-outbound-parser =
pkgs.runCommand "build-outbound-parser-check" { nativeBuildInputs = [ pkgs.python3 ]; }
''
export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=${../../scripts}:$PYTHONPATH
python ${../../scripts/test-build-outbound.py}
touch "$out"
'';
fetch-subscription-parser =
pkgs.runCommand "fetch-subscription-parser-check" { nativeBuildInputs = [ pkgs.python3 ]; }
''
export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=${../../scripts}:$PYTHONPATH
python ${../../scripts/test-fetch-subscription.py}
touch "$out"
'';
}