From a0f50fe24b639b3974183f02eb61d205791bcd3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Maret?= Date: Tue, 25 Feb 2020 17:51:15 +0100 Subject: [PATCH] pythonPackages.reproject: fix tests Co-Authored-By: Jon --- pkgs/development/python-modules/reproject/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix index 18fdd682f712..2d4d24cf8057 100644 --- a/pkgs/development/python-modules/reproject/default.nix +++ b/pkgs/development/python-modules/reproject/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , numpy , astropy , astropy-healpix @@ -24,6 +25,12 @@ buildPythonPackage rec { nativeBuildInputs = [ astropy-helpers cython ]; + # Fix tests + patches = [ (fetchpatch { + url = "https://github.com/astropy/reproject/pull/218/commits/4661e075137424813ed77f1ebcbc251fee1b8467.patch"; + sha256 = "13g3h824pqn2lgypzg1b87vkd44y7m302lhw3kh4rfww1dkzhm9v"; + }) ]; + # Disable automatic update of the astropy-helper module postPatch = '' substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"