From dc60dc1adabef2ebf7d5bc076a230a19b9cb6f80 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 16 Jul 2024 18:04:24 +0300 Subject: [PATCH] python311Packages.h5py: enable tests --- pkgs/development/python-modules/h5py/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/h5py/default.nix b/pkgs/development/python-modules/h5py/default.nix index b2bd668d679b..3e9bf5011ae8 100644 --- a/pkgs/development/python-modules/h5py/default.nix +++ b/pkgs/development/python-modules/h5py/default.nix @@ -12,6 +12,7 @@ mpi4py ? null, openssh, pytestCheckHook, + pytest-mpi, cached-property, }: @@ -74,12 +75,15 @@ buildPythonPackage rec { ] ++ lib.optionals (pythonOlder "3.8") [ cached-property ]; - # tests now require pytest-mpi, which isn't available and difficult to package - doCheck = false; nativeCheckInputs = [ pytestCheckHook + pytest-mpi openssh ]; + # https://github.com/NixOS/nixpkgs/issues/255262 + preCheck = '' + cd $out + ''; pythonImportsCheck = [ "h5py" ];