summaryrefslogtreecommitdiffstats
path: root/nixos/tests/make-test-python.nix
blob: ec8a286607a030214b8461159bcd44e5441de4d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
)