nixpkgs/pkgs/development/python-modules/astropy/default.nix

33 lines
742 B
Nix
Raw Normal View History

2017-06-07 17:02:42 +02:00
{ lib
, fetchPypi
, buildPythonPackage
, numpy
, cython
, h5py
, scipy }:
buildPythonPackage rec {
pname = "astropy";
2017-08-24 19:34:20 +02:00
version = "2.0.1";
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-08-24 19:34:20 +02:00
sha256 = "25e0881a392a2e03b4a705cf9592f01894d23f64797323b21387efa8ea9ec03e";
2017-06-07 17:02:42 +02:00
};
propagatedBuildInputs = [ numpy cython h5py scipy ];
meta = {
description = "Astronomy/Astrophysics library for Python";
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 ];
};
}