Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 49 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, numpy 6, astropy 7, astropy-healpix 8, astropy-helpers 9, extension-helpers 10, scipy 11, pytest 12, pytest-astropy 13, setuptools_scm 14, cython 15}: 16 17buildPythonPackage rec { 18 pname = "reproject"; 19 version = "0.7.1"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "1jsc3ad518vyys5987fr1achq8qvnz8rm80zp5an9qxlwr4zmh4m"; 24 }; 25 26 propagatedBuildInputs = [ numpy astropy astropy-healpix astropy-helpers scipy ]; 27 28 nativeBuildInputs = [ astropy-helpers cython extension-helpers setuptools_scm ]; 29 30 # Disable automatic update of the astropy-helper module 31 postPatch = '' 32 substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" 33 ''; 34 35 checkInputs = [ pytest pytest-astropy ]; 36 37 # Tests must be run in the build directory 38 checkPhase = '' 39 cd build/lib* 40 pytest 41 ''; 42 43 meta = with lib; { 44 description = "Reproject astronomical images"; 45 homepage = "https://reproject.readthedocs.io"; 46 license = licenses.bsd3; 47 maintainers = [ maintainers.smaret ]; 48 }; 49}