22 buildPythonPackage rec {
27 disabled = pythonOlder "3.7";
30 inherit pname version;
31 hash = "sha256-gr8PTuu7eNNt2u4Cg9Q/5XNrU4gLiozc03OQoHrDdBw=";
39 propagatedBuildInputs = [
43 ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
52 ] ++ lib.optionals (!isPyPy) [ time-machine ];
55 export HOME=$(mktemp -d)
59 # Ignore tests which require network access
60 "tests/unit/create/test_creator.py"
61 "tests/unit/seed/embed/test_bootstrap_link_via_app_data.py"
68 "test_seed_link_via_app_data"
70 "test_bad_exe_py_info_no_raise"
72 ++ lib.optionals (pythonOlder "3.11") [ "test_help" ]
73 ++ lib.optionals (isPyPy) [
77 "test_can_build_c_extensions"
78 # fails to detect pypy version
82 pythonImportsCheck = [ "virtualenv" ];
85 description = "Tool to create isolated Python environments";
86 mainProgram = "virtualenv";
87 homepage = "http://www.virtualenv.org";
88 changelog = "https://github.com/pypa/virtualenv/blob/${version}/docs/changelog.rst";
89 license = licenses.mit;