1{ lib 2, fetchPypi 3, buildPythonPackage 4, isPy3k 5, numpy 6, pytest }: 7 8buildPythonPackage rec { 9 pname = "astropy"; 10 version = "3.0.4"; 11 12 disabled = !isPy3k; # according to setup.py 13 14 doCheck = false; #Some tests are failing. More importantly setup.py hangs on completion. Needs fixing with a proper shellhook. 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "f5d37d20632ba74bd0b12a85179c12f64a9ea037ffc916d8a2de3be4f4656c76"; 19 }; 20 21 propagatedBuildInputs = [ pytest numpy ]; # yes it really has pytest in install_requires 22 23 meta = { 24 description = "Astronomy/Astrophysics library for Python"; 25 homepage = http://www.astropy.org; 26 license = lib.licenses.bsd3; 27 platforms = lib.platforms.all; 28 maintainers = with lib.maintainers; [ kentjames ]; 29 }; 30} 31 32