aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/drms/default.nix
blob: bc01b46eadaf7ed2243149b83804b2d6f4f585ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, pandas
, six
, pytest
, python
}:

buildPythonPackage rec {
  pname = "drms";
  version = "0.5.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ab3ec6d072b1980f77dadf3b2cb0fe56c648eaf927ea381f606b4db66d4cbff2";
  };

  propagatedBuildInputs = [
    numpy
    pandas
    six
  ];

  checkInputs = [
    pytest
  ];

  checkPhase = ''
    ${python.interpreter} -m drms.tests
  '';

  meta = with lib; {
    description = "Access HMI, AIA and MDI data with Python";
    homepage = "https://github.com/sunpy/drms";
    license = licenses.mit;
    maintainers = [ maintainers.costrouc ];
  };
}