Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 32 lines 783 B view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, isPy3k 5, numpy 6, pytest }: 7 8buildPythonPackage rec { 9 pname = "astropy"; 10 version = "3.0"; 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 = "9e0ad19b9d6d227bdf0932bbe64a8c5dd4a47d4ec078586cf24bf9f0c61d9ecf"; 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