1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, astropy
6, astropy-helpers
7}:
8
9buildPythonPackage rec {
10 pname = "astropy-healpix";
11 version = "0.4";
12
13 doCheck = false; # tests require pytest-astropy
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "8c9709ac923759c92eca6d2e623e734d0f417eed40ba835b77d99dec09e51aa2";
18 };
19
20 propagatedBuildInputs = [ numpy astropy astropy-helpers ];
21
22 # Disable automatic update of the astropy-helper module
23 postPatch = ''
24 substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False"
25 '';
26
27 meta = with lib; {
28 description = "BSD-licensed HEALPix for Astropy";
29 homepage = https://github.com/astropy/astropy-healpix;
30 license = licenses.bsd3;
31 maintainers = [ maintainers.smaret ];
32 };
33}