1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, astropy
6, astropy-helpers
7}:
8
9buildPythonPackage rec {
10 pname = "astropy-healpix";
11 version = "0.5";
12
13 doCheck = false; # tests require pytest-astropy
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "1bfdq33mj6mwk5fkc6n23f9bc9z8j7kmvql3zchz4h58jskmvqas";
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}