about summary refs log tree commit diff
path: root/nixos/tests/make-test-python.nix
blob: 28569f1d2955acf9215d5bae76d3400f44ac9ef7 (plain) (blame)
1
2
3
4
5
6
7
8
9
f: {
  system ? builtins.currentSystem,
  pkgs ? import ../.. { inherit system; config = {}; overlays = []; },
  ...
} @ args:

with import ../lib/testing-python.nix { inherit system pkgs; };

makeTest (if pkgs.lib.isFunction f then f (args // { inherit pkgs; inherit (pkgs) lib; }) else f)