about summary refs log tree commit diff
diff options
context:
space:
mode:
authorIlya Elenskiy <elenskiy.ilya@gmail.com>2023-05-13 00:32:38 +0200
committerVladimír Čunát <v@cunat.cz>2023-06-03 10:59:08 +0200
commit789271b2c8a4cc01398316c211b0d597cde8324d (patch)
tree593e26304bec2d8341bb202146c03c5d62ee24c2
parent2d22ff038930748eb270ffa4db3c2caea7112f97 (diff)
python3Packages.hickle: fixed failing unit tests
Extracted from and reviewed on PR #231548
-rw-r--r--pkgs/development/python-modules/hickle/default.nix18
1 files changed, 16 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/hickle/default.nix b/pkgs/development/python-modules/hickle/default.nix
index 5374a9b6b53d3..6fcb1d166ac93 100644
--- a/pkgs/development/python-modules/hickle/default.nix
+++ b/pkgs/development/python-modules/hickle/default.nix
@@ -12,8 +12,10 @@
 }:
 
 buildPythonPackage rec {
-  pname   = "hickle";
+  pname = "hickle";
   version = "5.0.2";
+  format = "setuptools";
+
   disabled = pythonOlder "3.5";
 
   src = fetchPypi {
@@ -28,11 +30,23 @@ buildPythonPackage rec {
   propagatedBuildInputs = [ h5py numpy dill ];
 
   nativeCheckInputs = [
-    pytestCheckHook scipy pandas astropy
+    pytestCheckHook
+    scipy
+    pandas
+    astropy
   ];
 
   pythonImportsCheck = [ "hickle" ];
 
+  disabledTests = [
+    # broken in 5.0.2 with recent NumPy
+    # see https://github.com/telegraphic/hickle/issues/174
+    "test_scalar_compression"
+    # broken in 5.0.2 with python 3.11
+    # see https://github.com/telegraphic/hickle/issues/169
+    "test_H5NodeFilterProxy"
+  ];
+
   meta = {
     description = "Serialize Python data to HDF5";
     homepage = "https://github.com/telegraphic/hickle";