depot/third_party/nixpkgs/pkgs/development/python-modules/sunpy/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

116 lines
2.4 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, asdf
, astropy
, setuptools-scm
, astropy-helpers
, astropy-extension-helpers
, beautifulsoup4
, drms
, glymur
, h5netcdf
, hypothesis
, matplotlib
, numpy
, pandas
, parfive
, pytestCheckHook
, pytest-astropy
, pytest-mock
, python-dateutil
, scikitimage
, scipy
, sqlalchemy
, towncrier
, tqdm
, zeep
}:
buildPythonPackage rec {
pname = "sunpy";
version = "3.1.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "c8fcd3700d8f4b7880a669f28c44f784422da1dbfe59fb175f155703817695ed";
};
nativeBuildInputs = [
setuptools-scm
astropy-extension-helpers
];
propagatedBuildInputs = [
numpy
scipy
matplotlib
pandas
astropy
astropy-helpers
h5netcdf
parfive
sqlalchemy
scikitimage
towncrier
glymur
beautifulsoup4
drms
python-dateutil
zeep
tqdm
asdf
];
checkInputs = [
hypothesis
pytestCheckHook
pytest-astropy
pytest-mock
];
# darwin has write permission issues
doCheck = stdenv.isLinux;
preCheck = ''
export HOME=$(mktemp -d)
'';
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"
# 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"
];
meta = with lib; {
description = "SunPy: Python for Solar Physics";
homepage = "https://sunpy.org";
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}