pythonPackages.reproject: fix tests

Co-Authored-By: Jon <jonringer@users.noreply.github.com>
This commit is contained in:
Sébastien Maret 2020-02-25 17:51:15 +01:00 committed by Jon
parent 705afab44d
commit a0f50fe24b

View File

@ -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"