at 22.05-pre 2.5 kB view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchPypi 5, pythonOlder 6, asdf 7, astropy 8, setuptools-scm 9, astropy-helpers 10, astropy-extension-helpers 11, beautifulsoup4 12, drms 13, glymur 14, h5netcdf 15, hypothesis 16, matplotlib 17, numpy 18, pandas 19, parfive 20, pytestCheckHook 21, pytest-astropy 22, pytest-mock 23, python-dateutil 24, scikitimage 25, scipy 26, sqlalchemy 27, towncrier 28, tqdm 29, zeep 30}: 31 32buildPythonPackage rec { 33 pname = "sunpy"; 34 version = "3.1.1"; 35 disabled = pythonOlder "3.6"; 36 37 src = fetchPypi { 38 inherit pname version; 39 sha256 = "c8fcd3700d8f4b7880a669f28c44f784422da1dbfe59fb175f155703817695ed"; 40 }; 41 42 nativeBuildInputs = [ 43 setuptools-scm 44 astropy-extension-helpers 45 ]; 46 47 propagatedBuildInputs = [ 48 numpy 49 scipy 50 matplotlib 51 pandas 52 astropy 53 astropy-helpers 54 h5netcdf 55 parfive 56 sqlalchemy 57 scikitimage 58 towncrier 59 glymur 60 beautifulsoup4 61 drms 62 python-dateutil 63 zeep 64 tqdm 65 asdf 66 ]; 67 68 checkInputs = [ 69 hypothesis 70 pytestCheckHook 71 pytest-astropy 72 pytest-mock 73 ]; 74 75 # darwin has write permission issues 76 doCheck = stdenv.isLinux; 77 78 preCheck = '' 79 export HOME=$(mktemp -d) 80 ''; 81 82 disabledTests = [ 83 "rst" 84 ]; 85 86 disabledTestPaths = [ 87 "sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/helioprojective-1.0.0.yaml" 88 "sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/heliocentric-1.0.0.yaml" 89 # requires mpl-animators package 90 "sunpy/map/tests/test_compositemap.py" 91 "sunpy/map/tests/test_mapbase.py" 92 "sunpy/map/tests/test_mapsequence.py" 93 "sunpy/map/tests/test_plotting.py" 94 "sunpy/map/tests/test_reproject_to.py" 95 "sunpy/net/tests/test_helioviewer.py" 96 "sunpy/timeseries/tests/test_timeseriesbase.py" 97 "sunpy/visualization/animator/tests/test_basefuncanimator.py" 98 "sunpy/visualization/animator/tests/test_mapsequenceanimator.py" 99 "sunpy/visualization/animator/tests/test_wcs.py" 100 "sunpy/visualization/colormaps/tests/test_cm.py" 101 # requires cdflib package 102 "sunpy/timeseries/tests/test_timeseries_factory.py" 103 ]; 104 105 pytestFlagsArray = [ 106 "--deselect=sunpy/tests/tests/test_self_test.py::test_main_nonexisting_module" 107 "--deselect=sunpy/tests/tests/test_self_test.py::test_main_stdlib_module" 108 ]; 109 110 meta = with lib; { 111 description = "SunPy: Python for Solar Physics"; 112 homepage = "https://sunpy.org"; 113 license = licenses.bsd2; 114 maintainers = [ maintainers.costrouc ]; 115 }; 116}