python3Packages.virtualenv: 20.33.1 -> 20.35.4

Changelog: https://github.com/pypa/virtualenv/blob/20.35.4/docs/changelog.rst
This commit is contained in:
Robert Schütz
2025-11-26 11:39:07 -08:00
parent 10ade4265d
commit f095f0dbbf
@@ -3,75 +3,57 @@
buildPythonPackage,
pythonOlder,
isPyPy,
cython,
distlib,
fetchPypi,
fetchFromGitHub,
filelock,
flaky,
hatch-vcs,
hatchling,
importlib-metadata,
platformdirs,
pytest-freezegun,
pytest-mock,
pytest-timeout,
pytestCheckHook,
time-machine,
}:
buildPythonPackage rec {
pname = "virtualenv";
version = "20.33.1";
format = "pyproject";
version = "20.35.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-G0RHjZ4mGz+4uqXnSgyjvA4F8hqjYWe/nL+FDlQnZbg=";
src = fetchFromGitHub {
owner = "pypa";
repo = "virtualenv";
tag = version;
hash = "sha256-0PWIYU1/zXiOBUV/45rJsJwVlcqHeac68nRM2tvEPHo=";
};
nativeBuildInputs = [
build-system = [
hatch-vcs
hatchling
];
propagatedBuildInputs = [
dependencies = [
distlib
filelock
platformdirs
]
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
];
nativeCheckInputs = [
cython
flaky
pytest-freezegun
pytest-mock
pytest-timeout
pytestCheckHook
]
++ lib.optionals (!isPyPy) [ time-machine ];
preCheck = ''
export HOME=$(mktemp -d)
'';
disabledTestPaths = [
# Ignore tests which require network access
"tests/unit/create/test_creator.py"
"tests/unit/seed/embed/test_bootstrap_link_via_app_data.py"
"tests/unit/create/via_global_ref/test_build_c_ext.py"
];
disabledTests = [
# Network access
"test_create_no_seed"
"test_seed_link_via_app_data"
# Permission Error
"test_bad_exe_py_info_no_raise"
# https://github.com/pypa/virtualenv/issues/2933
# https://github.com/pypa/virtualenv/issues/2939
"test_py_info_cache_invalidation_on_py_info_change"
]
++ lib.optionals (pythonOlder "3.11") [ "test_help" ]
++ lib.optionals isPyPy [