nixpkgs/pkgs/development/python-modules/astropy/default.nix
2018-08-25 07:38:21 +02:00

33 lines
785 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, isPy3k
, numpy
, pytest }:
buildPythonPackage rec {
pname = "astropy";
version = "3.0.4";
disabled = !isPy3k; # according to setup.py
doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
src = fetchPypi {
inherit pname version;
sha256 = "f5d37d20632ba74bd0b12a85179c12f64a9ea037ffc916d8a2de3be4f4656c76";
};
propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires
meta = {
description = "Astronomy/Astrophysics library for Python";
homepage = http://www.astropy.org;
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ kentjames ];
};
}