1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

nixos/test-driver: add test for extraPythonPackages

This commit is contained in:
tljuniper 2022-05-23 11:08:51 +02:00
parent a99736e399
commit 8858bf009e
2 changed files with 14 additions and 0 deletions

View file

@ -152,6 +152,7 @@ in
etcd-cluster = handleTestOn ["x86_64-linux"] ./etcd-cluster.nix {};
etebase-server = handleTest ./etebase-server.nix {};
etesync-dav = handleTest ./etesync-dav.nix {};
extra-python-packages = handleTest ./extra-python-packages.nix {};
fancontrol = handleTest ./fancontrol.nix {};
fcitx = handleTest ./fcitx {};
fenics = handleTest ./fenics.nix {};

View file

@ -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.])")
'';
})