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

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

let testConfig = makeTest (if pkgs.lib.isFunction f then f (args // { inherit pkgs; inherit (pkgs) lib; }) else f);
in testConfig.test   # For nix-build
     // testConfig   # For all-tests.nix