2017-06-07 17:02:42 +02:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, numpy
|
2017-09-06 17:15:30 +02:00
|
|
|
, pytest }:
|
2017-06-07 17:02:42 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
|
|
|
pname = "astropy";
|
2017-10-25 20:04:35 +02:00
|
|
|
version = "2.0.2";
|
2017-06-07 17:02:42 +02:00
|
|
|
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 20:04:35 +02:00
|
|
|
sha256 = "4544a422b1173d79b2d65ba74c627f04a5fd8530d97fb604752d657d754e103d";
|
2017-06-07 17:02:42 +02:00
|
|
|
};
|
2017-09-06 17:15:30 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires
|
2017-06-07 17:02:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Astronomy/Astrophysics library for Python";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.astropy.org;
|
2017-06-07 17:02:42 +02:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ kentjames ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|