nixpkgs/pkgs/development/python-modules/sunpy/default.nix

117 lines
2.4 KiB
Nix
Raw Normal View History

2019-10-08 00:40:49 +01:00
{ stdenv
, lib
2019-07-15 18:48:07 +01:00
, buildPythonPackage
2020-12-28 18:49:17 +00:00
, fetchPypi
2019-07-15 18:48:07 +01:00
, pythonOlder
, asdf
2020-07-28 23:36:28 +01:00
, astropy
, setuptools-scm
2019-07-15 18:48:07 +01:00
, astropy-helpers
2020-12-28 18:49:17 +00:00
, astropy-extension-helpers
2020-07-28 23:36:28 +01:00
, beautifulsoup4
, drms
, glymur
, h5netcdf
2019-07-15 18:48:07 +01:00
, hypothesis
2020-07-28 23:36:28 +01:00
, matplotlib
, numpy
, pandas
, parfive
, pytestCheckHook
2019-07-15 18:48:07 +01:00
, pytest-astropy
, pytest-mock
2020-07-28 23:36:28 +01:00
, python-dateutil
, scikitimage
, scipy
, sqlalchemy
, towncrier
, tqdm
, zeep
2019-07-15 18:48:07 +01:00
}:
buildPythonPackage rec {
pname = "sunpy";
2021-11-02 19:43:16 +00:00
version = "3.1.0";
2019-07-15 18:48:07 +01:00
disabled = pythonOlder "3.6";
2020-12-28 18:49:17 +00:00
src = fetchPypi {
inherit pname version;
2021-11-02 19:43:16 +00:00
sha256 = "sha256-0DF+/lQpsQKO5omBKJAe3gBjQ6QQb50IdRSacIRL/JA=";
2019-07-15 18:48:07 +01:00
};
2020-12-28 18:49:17 +00:00
nativeBuildInputs = [
setuptools-scm
2020-12-28 18:49:17 +00:00
astropy-extension-helpers
];
2019-07-15 18:48:07 +01:00
propagatedBuildInputs = [
numpy
scipy
matplotlib
pandas
astropy
astropy-helpers
h5netcdf
2019-07-15 18:48:07 +01:00
parfive
sqlalchemy
scikitimage
2020-07-28 23:36:28 +01:00
towncrier
2019-07-15 18:48:07 +01:00
glymur
beautifulsoup4
drms
python-dateutil
zeep
tqdm
asdf
];
checkInputs = [
hypothesis
pytestCheckHook
2019-07-15 18:48:07 +01:00
pytest-astropy
pytest-mock
];
2019-10-08 00:40:49 +01:00
# darwin has write permission issues
doCheck = stdenv.isLinux;
2021-06-21 20:00:24 +01:00
preCheck = ''
export HOME=$(mktemp -d)
2019-07-15 18:48:07 +01: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-11-02 19:43:16 +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"
];
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"
];
2019-07-15 18:48:07 +01:00
meta = with lib; {
description = "SunPy: Python for Solar Physics";
homepage = "https://sunpy.org";
2019-07-15 18:48:07 +01:00
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}