1{ lib 2, astropy 3, astropy-extension-helpers 4, astropy-healpix 5, buildPythonPackage 6, cloudpickle 7, cython 8, dask 9, fetchPypi 10, fsspec 11, numpy 12, oldest-supported-numpy 13, pytest-astropy 14, pytestCheckHook 15, pythonOlder 16, scipy 17, setuptools-scm 18, zarr 19}: 20 21buildPythonPackage rec { 22 pname = "reproject"; 23 version = "0.12.0"; 24 format = "pyproject"; 25 26 disabled = pythonOlder "3.8"; 27 28 src = fetchPypi { 29 inherit pname version; 30 hash = "sha256-jb4efKT5jMY0ECV+ab5rpUHEk+tT4T2MioCRxs92TbI="; 31 }; 32 33 postPatch = '' 34 substituteInPlace pyproject.toml \ 35 --replace "cython==" "cython>=" 36 ''; 37 38 nativeBuildInputs = [ 39 astropy-extension-helpers 40 cython 41 numpy 42 oldest-supported-numpy 43 setuptools-scm 44 ]; 45 46 propagatedBuildInputs = [ 47 astropy 48 astropy-healpix 49 cloudpickle 50 dask 51 fsspec 52 numpy 53 scipy 54 zarr 55 ] ++ dask.optional-dependencies.array; 56 57 nativeCheckInputs = [ 58 pytest-astropy 59 pytestCheckHook 60 ]; 61 62 pytestFlagsArray = [ 63 "build/lib*" 64 # Avoid failure due to user warning: Distutils was imported before Setuptools 65 "-p no:warnings" 66 # Uses network 67 "--ignore build/lib*/reproject/interpolation/" 68 ]; 69 70 pythonImportsCheck = [ 71 "reproject" 72 ]; 73 74 meta = with lib; { 75 description = "Reproject astronomical images"; 76 downloadPage = "https://github.com/astropy/reproject"; 77 homepage = "https://reproject.readthedocs.io"; 78 license = licenses.bsd3; 79 maintainers = with maintainers; [ smaret ]; 80 }; 81}