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

33 lines
785 B
Nix
Raw Normal View History

2017-06-07 17:02:42 +02:00
{ lib
, fetchPypi
, buildPythonPackage
, isPy3k
2017-06-07 17:02:42 +02:00
, numpy
2017-09-06 17:15:30 +02:00
, pytest }:
2017-06-07 17:02:42 +02:00
buildPythonPackage rec {
pname = "astropy";
2018-08-13 09:22:06 +02:00
version = "3.0.4";
2017-06-07 17:02:42 +02:00
disabled = !isPy3k; # according to setup.py
2017-06-07 17:02:42 +02:00
doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook.
2017-06-07 17:02:42 +02:00
src = fetchPypi {
inherit pname version;
2018-08-13 09:22:06 +02:00
sha256 = "f5d37d20632ba74bd0b12a85179c12f64a9ea037ffc916d8a2de3be4f4656c76";
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";
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 ];
};
}