1{ lib
2, fetchPypi
3, buildPythonPackage
4, isPy3k
5, numpy
6, pytest }:
7
8buildPythonPackage rec {
9 pname = "astropy";
10 version = "3.1.1";
11
12 disabled = !isPy3k; # according to setup.py
13
14 doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "0fzm2q922qi68ns5biy807dzmgz1i9gqdh73lcafs0gfk8zyc9v5";
19 };
20
21 propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires
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