Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.2 kB view raw
1{ lib 2, astropy 3, astropy-extension-helpers 4, astropy-healpix 5, buildPythonPackage 6, cython 7, fetchPypi 8, numpy 9, pytest-astropy 10, pytestCheckHook 11, pythonOlder 12, scipy 13, setuptools-scm 14}: 15 16buildPythonPackage rec { 17 pname = "reproject"; 18 version = "0.10.0"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-OKxPPKcVVrEVUGR8Zaphn7ur9HOuqQKa9gnMo2RQQME="; 26 }; 27 28 nativeBuildInputs = [ 29 astropy-extension-helpers 30 cython 31 setuptools-scm 32 ]; 33 34 propagatedBuildInputs = [ 35 astropy 36 astropy-healpix 37 numpy 38 scipy 39 ]; 40 41 nativeCheckInputs = [ 42 pytest-astropy 43 pytestCheckHook 44 ]; 45 46 pytestFlagsArray = [ 47 "build/lib*" 48 # Avoid failure due to user warning: Distutils was imported before Setuptools 49 "-p no:warnings" 50 # Uses network 51 "--ignore build/lib*/reproject/interpolation/" 52 ]; 53 54 pythonImportsCheck = [ 55 "reproject" 56 ]; 57 58 meta = with lib; { 59 description = "Reproject astronomical images"; 60 homepage = "https://reproject.readthedocs.io"; 61 license = licenses.bsd3; 62 maintainers = with maintainers; [ smaret ]; 63 }; 64}