about summary refs log tree commit diff
path: root/nixos/tests/extra-python-packages.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/extra-python-packages.nix')
-rw-r--r--nixos/tests/extra-python-packages.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/tests/extra-python-packages.nix b/nixos/tests/extra-python-packages.nix
new file mode 100644
index 0000000000000..7a48077cf98bc
--- /dev/null
+++ b/nixos/tests/extra-python-packages.nix
@@ -0,0 +1,13 @@
+import ./make-test-python.nix ({ ... }:
+  {
+    name = "extra-python-packages";
+
+    extraPythonPackages = p: [ p.numpy ];
+
+    nodes = { };
+
+    testScript = ''
+      import numpy as np
+      assert str(np.zeros(4) == "array([0., 0., 0., 0.])")
+    '';
+  })