From 45fa57992b4b416d2f59ac3e545f8683e901371d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 7 Dec 2020 16:40:24 +0100 Subject: [PATCH] pythonPackages.h5netcdf: Fix test issues with h5py >= 3.0 --- pkgs/development/python-modules/h5netcdf/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/h5netcdf/default.nix b/pkgs/development/python-modules/h5netcdf/default.nix index 316c5bc4d48..23a8c4ddcb2 100644 --- a/pkgs/development/python-modules/h5netcdf/default.nix +++ b/pkgs/development/python-modules/h5netcdf/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , h5py , pytestCheckHook , netcdf4 @@ -16,6 +17,13 @@ buildPythonPackage rec { sha256 = "09bbnpsvwksb07wijn7flyyza56h5b2g2cw0hb3slmwxz6cgcjmr"; }; + patches = [ + (fetchpatch{ + url = "https://patch-diff.githubusercontent.com/raw/h5netcdf/h5netcdf/pull/82.patch"; + sha256 = "0x9bq9jl4kvw152adkpcyqslhpi7miv80hrnpl2w2y798mmbs0s4"; + }) + ]; + propagatedBuildInputs = [ h5py ];