2022-01-26 04:04:25 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-01-05 17:05:55 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, pythonOlder
|
|
|
|
, asdf
|
2020-08-20 17:08:02 +00:00
|
|
|
, astropy
|
2021-04-05 15:23:46 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, astropy-helpers
|
2021-01-05 17:05:55 +00:00
|
|
|
, astropy-extension-helpers
|
2020-08-20 17:08:02 +00:00
|
|
|
, beautifulsoup4
|
|
|
|
, drms
|
|
|
|
, glymur
|
2021-05-20 23:08:51 +00:00
|
|
|
, h5netcdf
|
2020-04-24 23:36:52 +00:00
|
|
|
, hypothesis
|
2020-08-20 17:08:02 +00:00
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, parfive
|
2021-08-25 08:27:29 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-astropy
|
|
|
|
, pytest-mock
|
2020-08-20 17:08:02 +00:00
|
|
|
, python-dateutil
|
|
|
|
, scikitimage
|
|
|
|
, scipy
|
|
|
|
, sqlalchemy
|
|
|
|
, towncrier
|
|
|
|
, tqdm
|
|
|
|
, zeep
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sunpy";
|
2022-01-07 04:07:37 +00:00
|
|
|
version = "3.1.3";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-07 04:07:37 +00:00
|
|
|
sha256 = "4acb05a05c7e6a2090cd0bb426b34c7e1620be0de2bf90a95a3f48ba15a5fce2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
astropy-extension-helpers
|
2022-01-26 04:04:25 +00:00
|
|
|
setuptools-scm
|
2021-01-05 17:05:55 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-01-26 04:04:25 +00:00
|
|
|
asdf
|
2020-04-24 23:36:52 +00:00
|
|
|
astropy
|
|
|
|
astropy-helpers
|
2022-01-26 04:04:25 +00:00
|
|
|
beautifulsoup4
|
|
|
|
drms
|
|
|
|
glymur
|
2021-05-20 23:08:51 +00:00
|
|
|
h5netcdf
|
2022-01-26 04:04:25 +00:00
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pandas
|
2020-04-24 23:36:52 +00:00
|
|
|
parfive
|
2022-01-26 04:04:25 +00:00
|
|
|
python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
scikitimage
|
2022-01-26 04:04:25 +00:00
|
|
|
scipy
|
|
|
|
sqlalchemy
|
2020-08-20 17:08:02 +00:00
|
|
|
towncrier
|
2020-04-24 23:36:52 +00:00
|
|
|
tqdm
|
2022-01-26 04:04:25 +00:00
|
|
|
zeep
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytest-astropy
|
|
|
|
pytest-mock
|
2022-01-26 04:04:25 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# darwin has write permission issues
|
|
|
|
doCheck = stdenv.isLinux;
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-08-25 08:27:29 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-08-25 08:27:29 +00:00
|
|
|
disabledTests = [
|
|
|
|
"rst"
|
2022-01-26 04:04:25 +00:00
|
|
|
"test_sunpy_warnings_logging"
|
|
|
|
"test_main_nonexisting_module"
|
|
|
|
"test_main_stdlib_module"
|
2021-08-25 08:27:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/helioprojective-1.0.0.yaml"
|
|
|
|
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/heliocentric-1.0.0.yaml"
|
2022-01-26 04:04:25 +00:00
|
|
|
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/heliographic_carrington-*.yaml"
|
|
|
|
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/geocentricearthequatorial-1.0.0.yaml"
|
|
|
|
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/geocentricsolarecliptic-1.0.0.yaml"
|
|
|
|
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/heliocentricearthecliptic-1.0.0.yaml"
|
|
|
|
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/coordinates/frames/heliocentricinertial-1.0.0.yaml"
|
|
|
|
"sunpy/io/special/asdf/schemas/sunpy.org/sunpy/map/generic_map-1.0.0.yaml"
|
2021-12-06 16:07:01 +00:00
|
|
|
# requires mpl-animators package
|
|
|
|
"sunpy/map/tests/test_compositemap.py"
|
|
|
|
"sunpy/map/tests/test_mapbase.py"
|
|
|
|
"sunpy/map/tests/test_mapsequence.py"
|
|
|
|
"sunpy/map/tests/test_plotting.py"
|
|
|
|
"sunpy/map/tests/test_reproject_to.py"
|
|
|
|
"sunpy/net/tests/test_helioviewer.py"
|
|
|
|
"sunpy/timeseries/tests/test_timeseriesbase.py"
|
|
|
|
"sunpy/visualization/animator/tests/test_basefuncanimator.py"
|
|
|
|
"sunpy/visualization/animator/tests/test_mapsequenceanimator.py"
|
|
|
|
"sunpy/visualization/animator/tests/test_wcs.py"
|
|
|
|
"sunpy/visualization/colormaps/tests/test_cm.py"
|
|
|
|
# requires cdflib package
|
|
|
|
"sunpy/timeseries/tests/test_timeseries_factory.py"
|
2022-01-26 04:04:25 +00:00
|
|
|
# distutils is deprecated
|
|
|
|
"sunpy/io/setup_package.py"
|
2021-08-25 08:27:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
2022-01-26 04:04:25 +00:00
|
|
|
"-W"
|
|
|
|
"ignore::DeprecationWarning"
|
2021-08-25 08:27:29 +00:00
|
|
|
];
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
# Wants a configuration file
|
|
|
|
# pythonImportsCheck = [
|
|
|
|
# "sunpy"
|
|
|
|
# ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-01-26 04:04:25 +00:00
|
|
|
description = "Python for Solar Physics";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://sunpy.org";
|
|
|
|
license = licenses.bsd2;
|
2022-01-26 04:04:25 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|