2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, 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";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "3.1.2";
|
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;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "5eeb479c3f2424bf46355165249a1caa849872f8bee525349c4dca4d15b271fd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
nativeBuildInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
setuptools-scm
|
2021-01-05 17:05:55 +00:00
|
|
|
astropy-extension-helpers
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
matplotlib
|
|
|
|
pandas
|
|
|
|
astropy
|
|
|
|
astropy-helpers
|
2021-05-20 23:08:51 +00:00
|
|
|
h5netcdf
|
2020-04-24 23:36:52 +00:00
|
|
|
parfive
|
|
|
|
sqlalchemy
|
|
|
|
scikitimage
|
2020-08-20 17:08:02 +00:00
|
|
|
towncrier
|
2020-04-24 23:36:52 +00:00
|
|
|
glymur
|
|
|
|
beautifulsoup4
|
|
|
|
drms
|
|
|
|
python-dateutil
|
|
|
|
zeep
|
|
|
|
tqdm
|
|
|
|
asdf
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
2021-08-25 08:27:29 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-astropy
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
];
|
|
|
|
|
|
|
|
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"
|
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"
|
2021-08-25 08:27:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--deselect=sunpy/tests/tests/test_self_test.py::test_main_nonexisting_module"
|
|
|
|
"--deselect=sunpy/tests/tests/test_self_test.py::test_main_stdlib_module"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "SunPy: Python for Solar Physics";
|
|
|
|
homepage = "https://sunpy.org";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|