summary refs log tree commit diff
path: root/pkgs/development/python-modules/astropy-healpix/default.nix
blob: 4300165470cd104eab4e3cf26573c68ed1e79d92 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, astropy
, astropy-helpers
}:

buildPythonPackage rec {
  pname = "astropy-healpix";
  version = "0.5";

  doCheck = false; # tests require pytest-astropy

  src = fetchPypi {
    inherit pname version;
    sha256 = "1bfdq33mj6mwk5fkc6n23f9bc9z8j7kmvql3zchz4h58jskmvqas";
  };

  propagatedBuildInputs = [ numpy astropy astropy-helpers ];

  # Disable automatic update of the astropy-helper module
  postPatch = ''
    substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
  '';

  meta = with lib; {
    description = "BSD-licensed HEALPix for Astropy";
    homepage = https://github.com/astropy/astropy-healpix;
    license = licenses.bsd3;
    maintainers = [ maintainers.smaret ];
  };
}