Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 504f8bffaade
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cd97c055a09c
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Feb 20, 2020

  1. python: execute pythonImportsCheckPhase in subshell

    Execute in subshell so that the cwd returns back
    to the original directory. This is important as
    it enables pythonImportsCheck to work with checkPhase
    Jonathan Ringer committed Feb 20, 2020
    Copy the full SHA
    cd97c05 View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 pkgs/development/interpreters/python/hooks/python-imports-check-hook.sh
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ pythonImportsCheckPhase () {

if [ -n "$pythonImportsCheck" ]; then
echo "Check whether the following modules can be imported: $pythonImportsCheck"
cd $out && eval "@pythonCheckInterpreter@ -c 'import os; import importlib; list(map(lambda mod: importlib.import_module(mod), os.environ[\"pythonImportsCheck\"].split()))'"
( cd $out && eval "@pythonCheckInterpreter@ -c 'import os; import importlib; list(map(lambda mod: importlib.import_module(mod), os.environ[\"pythonImportsCheck\"].split()))'" )
fi
}