1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/astropy/default.nix

33 lines
785 B
Nix
Raw Normal View History

2017-06-07 16:02:42 +01:00
{ lib
, fetchPypi
, buildPythonPackage
, 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";
2018-06-12 17:46:58 +01:00
version = "3.0.3";
2017-06-07 16:02:42 +01: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.
2017-06-07 16:02:42 +01:00
src = fetchPypi {
inherit pname version;
2018-06-12 17:46:58 +01:00
sha256 = "6af07abe5e263820a3dec93832a6ad74005013071490e125afbc6514411721da";
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";
homepage = http://www.astropy.org;
2017-06-07 16:02:42 +01:00
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ kentjames ];
};
}