summary refs log tree commit diff
path: root/nixos/tests/make-test-python.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/make-test-python.nix')
-rw-r--r--nixos/tests/make-test-python.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/tests/make-test-python.nix b/nixos/tests/make-test-python.nix
new file mode 100644
index 00000000000..89897fe7e61
--- /dev/null
+++ b/nixos/tests/make-test-python.nix
@@ -0,0 +1,9 @@
+f: {
+  system ? builtins.currentSystem,
+  pkgs ? import ../.. { inherit system; config = {}; },
+  ...
+} @ 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)