about summary refs log tree commit diff
path: root/pkgs/development/python-modules/virtualenv/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/virtualenv/default.nix')
-rw-r--r--pkgs/development/python-modules/virtualenv/default.nix88
1 files changed, 42 insertions, 46 deletions
diff --git a/pkgs/development/python-modules/virtualenv/default.nix b/pkgs/development/python-modules/virtualenv/default.nix
index 44ca0ff4f4f35..54b6c320db6f2 100644
--- a/pkgs/development/python-modules/virtualenv/default.nix
+++ b/pkgs/development/python-modules/virtualenv/default.nix
@@ -1,34 +1,35 @@
-{ lib
-, buildPythonPackage
-, pythonOlder
-, isPy27
-, isPyPy
-, cython
-, distlib
-, fetchPypi
-, filelock
-, flaky
-, hatch-vcs
-, hatchling
-, importlib-metadata
-, platformdirs
-, pytest-freezegun
-, pytest-mock
-, pytest-timeout
-, pytestCheckHook
-, time-machine
+{
+  lib,
+  buildPythonPackage,
+  pythonOlder,
+  isPy27,
+  isPyPy,
+  cython,
+  distlib,
+  fetchPypi,
+  filelock,
+  flaky,
+  hatch-vcs,
+  hatchling,
+  importlib-metadata,
+  platformdirs,
+  pytest-freezegun,
+  pytest-mock,
+  pytest-timeout,
+  pytestCheckHook,
+  time-machine,
 }:
 
 buildPythonPackage rec {
   pname = "virtualenv";
-  version = "20.25.1";
+  version = "20.25.3";
   format = "pyproject";
 
   disabled = pythonOlder "3.7";
 
   src = fetchPypi {
     inherit pname version;
-    hash = "sha256-4I4T7NynoL1TeY81bVgxQ0r6Wwe5Pwq98Hl7egb/4Zc=";
+    hash = "sha256-e7VUu9/qrMM0n6YU6lv/asMA/HwzXp+s86O8/HA/Rb4=";
   };
 
   nativeBuildInputs = [
@@ -40,9 +41,7 @@ buildPythonPackage rec {
     distlib
     filelock
     platformdirs
-  ] ++ lib.optionals (pythonOlder "3.8") [
-    importlib-metadata
-  ];
+  ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
 
   nativeCheckInputs = [
     cython
@@ -51,9 +50,7 @@ buildPythonPackage rec {
     pytest-mock
     pytest-timeout
     pytestCheckHook
-  ] ++ lib.optionals (!isPyPy) [
-    time-machine
-  ];
+  ] ++ lib.optionals (!isPyPy) [ time-machine ];
 
   preCheck = ''
     export HOME=$(mktemp -d)
@@ -65,26 +62,25 @@ buildPythonPackage rec {
     "tests/unit/seed/embed/test_bootstrap_link_via_app_data.py"
   ];
 
-  disabledTests = [
-    # Network access
-    "test_create_no_seed"
-    "test_seed_link_via_app_data"
-    # Permission Error
-    "test_bad_exe_py_info_no_raise"
-  ] ++ lib.optionals (pythonOlder "3.11") [
-    "test_help"
-  ] ++ lib.optionals (isPyPy) [
-    # encoding problems
-    "test_bash"
-    # permission error
-    "test_can_build_c_extensions"
-    # fails to detect pypy version
-    "test_discover_ok"
-  ];
+  disabledTests =
+    [
+      # Network access
+      "test_create_no_seed"
+      "test_seed_link_via_app_data"
+      # Permission Error
+      "test_bad_exe_py_info_no_raise"
+    ]
+    ++ lib.optionals (pythonOlder "3.11") [ "test_help" ]
+    ++ lib.optionals (isPyPy) [
+      # encoding problems
+      "test_bash"
+      # permission error
+      "test_can_build_c_extensions"
+      # fails to detect pypy version
+      "test_discover_ok"
+    ];
 
-  pythonImportsCheck = [
-    "virtualenv"
-  ];
+  pythonImportsCheck = [ "virtualenv" ];
 
   meta = with lib; {
     description = "A tool to create isolated Python environments";