1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools,
8 setuptools-scm,
9
10 # dependencies
11 numpy,
12 pandas,
13 packaging,
14
15 astropy,
16 pytestCheckHook,
17 pytest-doctestplus,
18}:
19
20buildPythonPackage rec {
21 pname = "drms";
22 version = "0.9.0";
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "sunpy";
27 repo = "drms";
28 tag = "v${version}";
29 hash = "sha256-Hd65bpJCknBeRd27JlcIkzzoZv5nGR7C6oMSGPFiyjA=";
30 };
31
32 build-system = [
33 setuptools
34 setuptools-scm
35 ];
36
37 dependencies = [
38 numpy
39 pandas
40 packaging
41 ];
42
43 nativeCheckInputs = [
44 astropy
45 pytestCheckHook
46 pytest-doctestplus
47 ];
48
49 disabledTests = [
50 "test_query_hexadecimal_strings"
51 "test_jsocinfoconstants" # Need network
52 ];
53
54 disabledTestPaths = [ "docs/tutorial.rst" ];
55
56 pythonImportsCheck = [ "drms" ];
57
58 meta = {
59 description = "Access HMI, AIA and MDI data with Python";
60 homepage = "https://github.com/sunpy/drms";
61 changelog = "https://github.com/sunpy/drms/blob/v${version}/CHANGELOG.rst";
62 license = lib.licenses.bsd2;
63 maintainers = with lib.maintainers; [ bot-wxt1221 ];
64 };
65}