diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-06-17 12:22:57 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-06-17 12:22:57 +0200 |
commit | 2c8bbf33fd84d2fd9de70d66c1f50ac1b6123dd8 (patch) | |
tree | b5eb5c57944e6a4baf151cd40f7821626df424f4 /nixos/lib/testing-python.nix | |
parent | 152736d39eeee7ff91274cb3cfe506b4611a37ac (diff) |
nixos/test-driver: Support mypy through regular mechanisms
Diffstat (limited to 'nixos/lib/testing-python.nix')
-rw-r--r-- | nixos/lib/testing-python.nix | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix index a6868a708aaf3..4bb1689ffd789 100644 --- a/nixos/lib/testing-python.nix +++ b/nixos/lib/testing-python.nix @@ -119,6 +119,7 @@ rec { { inherit testName; nativeBuildInputs = [ makeWrapper mypy ]; + buildInputs = [ testDriver ]; testScript = testScript'; preferLocalBuild = true; passthru = passthru // { @@ -138,13 +139,10 @@ rec { echo "${builtins.toString vlanNames}" >> testScriptWithTypes echo -n "$testScript" >> testScriptWithTypes - # set pythonpath so mypy knows where to find the imports. this requires the py.typed file. - export PYTHONPATH='${./test-driver}' mypy --no-implicit-optional \ --pretty \ --no-color-output \ testScriptWithTypes - unset PYTHONPATH ''} echo -n "$testScript" >> $out/test-script |