pythonPackages.sunpy: init at 1.0.2

This commit is contained in:
Chris Ostrouchov 2019-07-15 13:48:07 -04:00 committed by Frederik Rietdijk
parent 85e027d914
commit 52840a2557
2 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,80 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, scipy
, matplotlib
, pandas
, astropy
, parfive
, pythonOlder
, sqlalchemy
, scikitimage
, glymur
, beautifulsoup4
, drms
, python-dateutil
, zeep
, tqdm
, asdf
, astropy-helpers
, hypothesis
, pytest-astropy
, pytestcov
, pytest-mock
}:
buildPythonPackage rec {
pname = "sunpy";
version = "1.0.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "sunpy";
repo = pname;
rev = "v${version}";
sha256 = "0dmfzxxsjjax9wf2ljyl4z07pxbshrj828zi5qnsa9rgk4148q9x";
};
propagatedBuildInputs = [
numpy
scipy
matplotlib
pandas
astropy
astropy-helpers
parfive
sqlalchemy
scikitimage
glymur
beautifulsoup4
drms
python-dateutil
zeep
tqdm
asdf
];
checkInputs = [
hypothesis
pytest-astropy
pytestcov
pytest-mock
];
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
export HOME=$(mktemp -d)
'';
checkPhase = ''
pytest sunpy -k "not test_rotation"
'';
meta = with lib; {
description = "SunPy: Python for Solar Physics";
homepage = https://sunpy.org;
license = licenses.bsd2;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -2613,6 +2613,8 @@ in {
subliminal = callPackage ../development/python-modules/subliminal {};
sunpy = callPackage ../development/python-modules/sunpy { };
hyperlink = callPackage ../development/python-modules/hyperlink {};
zope_copy = callPackage ../development/python-modules/zope_copy {};