24 buildPythonPackage rec {
29 inherit pname version;
30 sha256 = "b7a8ec323ee02fb2312f098b6b4c9de99559b462775bc8fe3627a73706603c1b";
37 propagatedBuildInputs = [
42 ] ++ lib.optionals isPy27 [
44 ] ++ lib.optionals (isPy27 && !stdenv.hostPlatform.isWindows) [
46 ] ++ lib.optionals (pythonOlder "3.7") [
48 ] ++ lib.optionals (pythonOlder "3.8") [
52 patches = lib.optionals (isPy27) [
53 ./0001-Check-base_prefix-and-base_exec_prefix-for-Python-2.patch
66 export HOME=$(mktemp -d)
69 # Ignore tests which require network access
71 "tests/unit/create/test_creator.py"
72 "tests/unit/seed/embed/test_bootstrap_link_via_app_data.py"
76 "test_can_build_c_extensions"
77 "test_xonsh" # imports xonsh, which is not in pythonPackages
78 # tests search `python3`, fail on python2, pypy
79 "test_python_via_env_var"
80 "test_python_multi_value_prefer_newline_via_env_var"
83 pythonImportsCheck = [ "virtualenv" ];
86 description = "A tool to create isolated Python environments";
87 homepage = "http://www.virtualenv.org";
88 license = licenses.mit;
89 maintainers = with maintainers; [ goibhniu ];