2017-06-07 16:02:42 +01:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2018-03-20 13:30:01 +00:00
|
|
|
, isPy3k
|
2017-06-07 16:02:42 +01:00
|
|
|
, numpy
|
2017-09-06 16:15:30 +01:00
|
|
|
, pytest }:
|
2017-06-07 16:02:42 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "astropy";
|
2019-06-17 17:16:38 +01:00
|
|
|
version = "3.2.1";
|
2017-06-07 16:02:42 +01:00
|
|
|
|
2018-03-20 13:30:01 +00:00
|
|
|
disabled = !isPy3k; # according to setup.py
|
|
|
|
|
2017-06-07 16:02:42 +01:00
|
|
|
doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
|
2018-03-20 13:30:01 +00:00
|
|
|
|
2017-06-07 16:02:42 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-17 17:16:38 +01:00
|
|
|
sha256 = "706c0457789c78285e5464a5a336f5f0b058d646d60f4e5f5ba1f7d5bf424b28";
|
2017-06-07 16:02:42 +01:00
|
|
|
};
|
2017-09-06 16:15:30 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires
|
2017-06-07 16:02:42 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Astronomy/Astrophysics library for Python";
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = https://www.astropy.org;
|
2017-06-07 16:02:42 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
maintainers = with lib.maintainers; [ kentjames ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|