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
|
2020-04-24 23:36:52 +00:00
|
|
|
, hypothesis
|
2020-08-20 17:08:02 +00:00
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, parfive
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-astropy
|
|
|
|
, pytest-mock
|
2020-08-20 17:08:02 +00:00
|
|
|
, pytestcov
|
|
|
|
, python-dateutil
|
|
|
|
, scikitimage
|
|
|
|
, scipy
|
|
|
|
, sqlalchemy
|
|
|
|
, towncrier
|
|
|
|
, tqdm
|
|
|
|
, zeep
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sunpy";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "2.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-04-26 19:14:03 +00:00
|
|
|
sha256 = "8bbc440e606a4f3fcbd1441150d81da6f0208adace9dc06f6afd2c9cb7c08908";
|
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
|
|
|
|
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
|
|
|
|
pytest-astropy
|
|
|
|
pytestcov
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
# darwin has write permission issues
|
|
|
|
doCheck = stdenv.isLinux;
|
|
|
|
# ignore documentation tests
|
|
|
|
checkPhase = ''
|
2021-01-05 17:05:55 +00:00
|
|
|
PY_IGNORE_IMPORTMISMATCH=1 HOME=$(mktemp -d) pytest sunpy -k 'not rst'
|
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 ];
|
|
|
|
};
|
|
|
|
}
|