@@ -0,0 +1,32 @@
1+{ lib
2+, fetchPypi
3+, buildPythonPackage
4+, numpy
5+, cython
6+, h5py
7+, scipy }:
8+
9+buildPythonPackage rec {
10+
11+ pname = "astropy";
12+ version = "1.3.3";
13+
14+ name = "${pname}-${version}";
15+ doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "ed093e033fcbee5a3ec122420c3376f8a80f74663214560727d3defe82170a99";
19+ };
20+ propagatedBuildInputs = [ numpy cython h5py scipy ];
21+
22+
23+ meta = {
24+ description = "Astronomy/Astrophysics library for Python";
25+ homepage = "http://www.astropy.org";
26+ license = lib.licenses.bsd3;
27+ platforms = lib.platforms.all;
28+ maintainers = with lib.maintainers; [ kentjames ];
29+ };
30+}
31+
32+