1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 numpy,
6 pandas,
7 six,
8 astropy,
9 oldest-supported-numpy,
10 pytestCheckHook,
11 pytest-doctestplus,
12 pythonOlder,
13 setuptools-scm,
14 wheel,
15}:
16
17buildPythonPackage rec {
18 pname = "drms";
19 version = "0.8.0";
20 format = "pyproject";
21 disabled = pythonOlder "3.7";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-LgHu7mTgiL3n2lVaOhppdWfQiM0CFkK+6z6eBkLxmKY=";
26 };
27
28 nativeBuildInputs = [
29 numpy
30 oldest-supported-numpy
31 setuptools-scm
32 wheel
33 ];
34
35 propagatedBuildInputs = [
36 numpy
37 pandas
38 six
39 ];
40
41 nativeCheckInputs = [
42 astropy
43 pytestCheckHook
44 pytest-doctestplus
45 ];
46
47 disabledTests = [
48 "test_query_hexadecimal_strings"
49 "test_jsocinfoconstants" # Need network
50 ];
51
52 disabledTestPaths = [ "docs/tutorial.rst" ];
53
54 pythonImportsCheck = [ "drms" ];
55
56 meta = {
57 description = "Access HMI, AIA and MDI data with Python";
58 homepage = "https://github.com/sunpy/drms";
59 license = lib.licenses.bsd2;
60 maintainers = with lib.maintainers; [ bot-wxt1221 ];
61 };
62}