diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix index ccc76734461..8448f55f958 100644 --- a/pkgs/development/python-modules/reproject/default.nix +++ b/pkgs/development/python-modules/reproject/default.nix @@ -6,7 +6,7 @@ , astropy , astropy-healpix , astropy-helpers -, extension-helpers +, astropy-extension-helpers , scipy , pytest , pytest-astropy @@ -23,15 +23,16 @@ buildPythonPackage rec { sha256 = "1jsc3ad518vyys5987fr1achq8qvnz8rm80zp5an9qxlwr4zmh4m"; }; - propagatedBuildInputs = [ numpy astropy astropy-healpix astropy-helpers scipy ]; - - nativeBuildInputs = [ astropy-helpers cython extension-helpers setuptools_scm ]; - - # Disable automatic update of the astropy-helper module - postPatch = '' - substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" - ''; + patches = [ (fetchpatch { + # Can be removed in next release after 0.7.1 + # See https://github.com/astropy/reproject/issues/246 + url = "https://github.com/astropy/reproject/pull/243.patch"; + sha256 = "0dq3ii39hsrks0b9v306dlqf07dx0hqad8rwajmzw6rfda9m3c2a"; + }) + ]; + propagatedBuildInputs = [ numpy astropy aqstropy-healpix astropy-helpers scipy ]; + nativeBuildInputs = [ astropy-helpers cyqthon astropy-extension-helpers setuptools_scm ]; checkInputs = [ pytest pytest-astropy ]; # Tests must be run in the build directory