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
|
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
|
2019-07-15 18:48:07 +01:00
|
|
|
, hypothesis
|
2020-07-28 23:36:28 +01:00
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, parfive
|
2019-07-15 18:48:07 +01:00
|
|
|
, pytest-astropy
|
|
|
|
, pytest-mock
|
2020-07-28 23:36:28 +01:00
|
|
|
, pytestcov
|
|
|
|
, python-dateutil
|
|
|
|
, scikitimage
|
|
|
|
, scipy
|
|
|
|
, sqlalchemy
|
|
|
|
, towncrier
|
|
|
|
, tqdm
|
|
|
|
, zeep
|
2019-07-15 18:48:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sunpy";
|
2020-12-28 18:49:17 +00:00
|
|
|
version = "2.0.6";
|
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;
|
|
|
|
sha256 = "109flghca42yhsm2w5xicqhyx1mc8c3vlwvadbn65fz3lhysqj67";
|
2019-07-15 18:48:07 +01:00
|
|
|
};
|
|
|
|
|
2020-12-28 18:49:17 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
astropy-extension-helpers
|
|
|
|
];
|
|
|
|
|
2019-07-15 18:48:07 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
matplotlib
|
|
|
|
pandas
|
|
|
|
astropy
|
|
|
|
astropy-helpers
|
|
|
|
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
|
|
|
|
pytest-astropy
|
|
|
|
pytestcov
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
2019-10-08 00:40:49 +01:00
|
|
|
# darwin has write permission issues
|
|
|
|
doCheck = stdenv.isLinux;
|
|
|
|
# ignore documentation tests
|
2019-07-15 18:48:07 +01:00
|
|
|
checkPhase = ''
|
2020-12-28 18:49:17 +00:00
|
|
|
PY_IGNORE_IMPORTMISMATCH=1 HOME=$(mktemp -d) pytest sunpy -k 'not rst'
|
2019-07-15 18:48:07 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SunPy: Python for Solar Physics";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sunpy.org";
|
2019-07-15 18:48:07 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|