2019-09-06 08:25:22 +01:00
|
|
|
f: {
|
|
|
|
system ? builtins.currentSystem,
|
2020-11-07 12:04:50 +00:00
|
|
|
pkgs ? import ../.. { inherit system; },
|
2019-09-06 08:25:22 +01:00
|
|
|
...
|
|
|
|
} @ args:
|
|
|
|
|
|
|
|
with import ../lib/testing-python.nix { inherit system pkgs; };
|
|
|
|
|
2022-10-01 15:39:43 +01:00
|
|
|
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
|