about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyfakefs/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pyfakefs/default.nix')
-rw-r--r--pkgs/development/python-modules/pyfakefs/default.nix69
1 files changed, 35 insertions, 34 deletions
diff --git a/pkgs/development/python-modules/pyfakefs/default.nix b/pkgs/development/python-modules/pyfakefs/default.nix
index c588607f5c126..8e49354362a18 100644
--- a/pkgs/development/python-modules/pyfakefs/default.nix
+++ b/pkgs/development/python-modules/pyfakefs/default.nix
@@ -1,51 +1,52 @@
-{ lib
-, stdenv
-, buildPythonPackage
-, fetchPypi
-, pythonOlder
-
-# build-system
-, setuptools
-
-# tests
-, pytestCheckHook
-, undefined
+{
+  lib,
+  stdenv,
+  buildPythonPackage,
+  fetchPypi,
+  pythonOlder,
+
+  # build-system
+  setuptools,
+
+  # tests
+  pandas,
+  pytestCheckHook,
+  undefined,
 }:
 
 buildPythonPackage rec {
   pname = "pyfakefs";
-  version = "5.3.5";
+  version = "5.4.1";
   pyproject = true;
 
   disabled = pythonOlder "3.5";
 
   src = fetchPypi {
     inherit pname version;
-    hash = "sha256-fNxQCzWiFMt6YU4ZQFQ6zGZQ5pqUrHbjDzPJNzvZz5A=";
+    hash = "sha256-IMtR6GDC8/+DhZFirVE0u4sKHnqB3woYz8zEhi0Nncw=";
   };
 
-  postPatch = ''
-    # test doesn't work in sandbox
-    substituteInPlace pyfakefs/tests/fake_filesystem_test.py \
-      --replace "test_expand_root" "notest_expand_root"
-    substituteInPlace pyfakefs/tests/fake_os_test.py \
-      --replace "test_path_links_not_resolved" "notest_path_links_not_resolved" \
-      --replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows"
-  '' + (lib.optionalString stdenv.isDarwin ''
-    # this test fails on darwin due to case-insensitive file system
-    substituteInPlace pyfakefs/tests/fake_os_test.py \
-      --replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir"
-  '');
-
-  nativeBuildInputs = [
-    setuptools
-  ];
-
-  pythonImportsCheck = [
-    "pyfakefs"
-  ];
+  postPatch =
+    ''
+      # test doesn't work in sandbox
+      substituteInPlace pyfakefs/tests/fake_filesystem_test.py \
+        --replace "test_expand_root" "notest_expand_root"
+      substituteInPlace pyfakefs/tests/fake_os_test.py \
+        --replace "test_path_links_not_resolved" "notest_path_links_not_resolved" \
+        --replace "test_append_mode_tell_linux_windows" "notest_append_mode_tell_linux_windows"
+    ''
+    + (lib.optionalString stdenv.isDarwin ''
+      # this test fails on darwin due to case-insensitive file system
+      substituteInPlace pyfakefs/tests/fake_os_test.py \
+        --replace "test_rename_dir_to_existing_dir" "notest_rename_dir_to_existing_dir"
+    '');
+
+  nativeBuildInputs = [ setuptools ];
+
+  pythonImportsCheck = [ "pyfakefs" ];
 
   nativeCheckInputs = [
+    pandas
     pytestCheckHook
     undefined
   ];