dream2nix/tests/unit/default.nix

28 lines
393 B
Nix

{
self,
lib,
coreutils,
nix,
python3,
utils,
dream2nixWithExternals,
...
}: let
l = lib // builtins;
pythonEnv = python3.withPackages (ps:
with ps; [
pytest
pytest-xdist
]);
in
utils.writePureShellScript
[
coreutils
nix
]
''
export dream2nixSrc=${../../.}/src
${pythonEnv}/bin/pytest ${self}/tests/unit -n $(nproc) -v "$@"
''