dream2nix/tests/unit/default.nix
2022-10-17 04:29:07 -07:00

30 lines
408 B
Nix

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