mirror of
https://github.com/nix-community/nix-direnv.git
synced 2024-08-17 07:20:32 +03:00
17 lines
319 B
Nix
17 lines
319 B
Nix
{ writeShellScriptBin
|
|
, direnv
|
|
, python3
|
|
, lib
|
|
, coreutils
|
|
, gnugrep
|
|
, nixVersions
|
|
, nixVersion
|
|
}:
|
|
writeShellScriptBin "test-runner-${nixVersion}" ''
|
|
set -e
|
|
export PATH=${lib.makeBinPath [ direnv nixVersions.${nixVersion} coreutils gnugrep ]}
|
|
|
|
echo run unittest
|
|
${lib.getExe' python3.pkgs.pytest "pytest"} .
|
|
''
|