mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
16 lines
309 B
Nix
16 lines
309 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} .
|
|
''
|