python2.tests.nixenv-virtualenv: fix test

by using a python env that ignores collisions in the backports packages.
main
Frederik Rietdijk 2 years ago
parent 2e5cfa6de7
commit 4853c2d375
  1. 10
      pkgs/development/interpreters/python/tests.nix

@ -20,7 +20,15 @@ let
envs = let
inherit python;
pythonEnv = python.withPackages(ps: with ps; [ ]);
pythonVirtualEnv = python.withPackages(ps: with ps; [ virtualenv ]);
pythonVirtualEnv = if python.isPy3k
then
python.withPackages(ps: with ps; [ virtualenv ])
else
python.buildEnv.override {
extraLibs = with python.pkgs; [ virtualenv ];
# Collisions because of namespaces __init__.py
ignoreCollisions = true;
};
in {
# Plain Python interpreter
plain = rec {

Loading…
Cancel
Save