From 212ce02fa0316d725d901d4f89feb1a5f51c75fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Maret?= Date: Tue, 3 Dec 2019 14:25:17 +0100 Subject: [PATCH] python: reproject: 0.5.1 -> 0.6 --- .../python-modules/reproject/default.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/reproject/default.nix b/pkgs/development/python-modules/reproject/default.nix index d16f9fd2929..18fdd682f71 100644 --- a/pkgs/development/python-modules/reproject/default.nix +++ b/pkgs/development/python-modules/reproject/default.nix @@ -6,26 +6,37 @@ , astropy-healpix , astropy-helpers , scipy +, pytest +, pytest-astropy +, cython }: buildPythonPackage rec { pname = "reproject"; - version = "0.5.1"; - - doCheck = false; # tests require pytest-astropy + version = "0.6"; src = fetchPypi { inherit pname version; - sha256 = "069rha55cbm8vsi1qf8zydds42lgkcc97sd57hmjw1mgiz025xrp"; + sha256 = "484fde86d70d972d703038f138d7c2966ddf51171a6e79bd84e82ea270e27af3"; }; propagatedBuildInputs = [ numpy astropy astropy-healpix astropy-helpers scipy ]; + nativeBuildInputs = [ astropy-helpers cython ]; + # Disable automatic update of the astropy-helper module postPatch = '' substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" ''; + checkInputs = [ pytest pytest-astropy ]; + + # Tests must be run in the build directory + checkPhase = '' + cd build/lib* + pytest + ''; + meta = with lib; { description = "Reproject astronomical images"; homepage = https://reproject.readthedocs.io;