1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, numpy
5, scipy
6, matplotlib
7, pandas
8, astropy
9, parfive
10, pythonOlder
11, sqlalchemy
12, scikitimage
13, glymur
14, beautifulsoup4
15, drms
16, python-dateutil
17, zeep
18, tqdm
19, asdf
20, astropy-helpers
21, hypothesis
22, pytest-astropy
23, pytestcov
24, pytest-mock
25}:
26
27buildPythonPackage rec {
28 pname = "sunpy";
29 version = "1.0.2";
30 disabled = pythonOlder "3.6";
31
32 src = fetchFromGitHub {
33 owner = "sunpy";
34 repo = pname;
35 rev = "v${version}";
36 sha256 = "0dmfzxxsjjax9wf2ljyl4z07pxbshrj828zi5qnsa9rgk4148q9x";
37 };
38
39 propagatedBuildInputs = [
40 numpy
41 scipy
42 matplotlib
43 pandas
44 astropy
45 astropy-helpers
46 parfive
47 sqlalchemy
48 scikitimage
49 glymur
50 beautifulsoup4
51 drms
52 python-dateutil
53 zeep
54 tqdm
55 asdf
56 ];
57
58 checkInputs = [
59 hypothesis
60 pytest-astropy
61 pytestcov
62 pytest-mock
63 ];
64
65 preBuild = ''
66 export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
67 export HOME=$(mktemp -d)
68 '';
69
70 checkPhase = ''
71 pytest sunpy -k "not test_rotation"
72 '';
73
74 meta = with lib; {
75 description = "SunPy: Python for Solar Physics";
76 homepage = https://sunpy.org;
77 license = licenses.bsd2;
78 maintainers = [ maintainers.costrouc ];
79 };
80}