at 23.05-pre 1.1 kB view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, pythonOlder 5 6# build time 7, astropy-extension-helpers 8, astropy-helpers 9, cython 10, jinja2 11, setuptools-scm 12 13# runtime 14, numpy 15, packaging 16, pyerfa 17, pyyaml 18}: 19 20let 21 pname = "astropy"; 22 version = "5.1"; 23in 24buildPythonPackage { 25 inherit pname version; 26 format = "pyproject"; 27 28 disabled = pythonOlder "3.8"; # according to setup.cfg 29 30 src = fetchPypi { 31 inherit pname version; 32 sha256 = "sha256-HbGyx+3fx3PKZvozvQeyXVucO17uK5NODKJ3+lsbe34="; 33 }; 34 35 SETUPTOOLS_SCM_PRETEND_VERSION = version; 36 37 nativeBuildInputs = [ 38 astropy-extension-helpers 39 astropy-helpers 40 cython 41 jinja2 42 setuptools-scm 43 ]; 44 45 propagatedBuildInputs = [ 46 numpy 47 packaging 48 pyerfa 49 pyyaml 50 ]; 51 52 # infinite recursion with pytest-astropy (pytest-astropy-header depends on astropy itself) 53 doCheck = false; 54 55 meta = with lib; { 56 description = "Astronomy/Astrophysics library for Python"; 57 homepage = "https://www.astropy.org"; 58 license = licenses.bsd3; 59 platforms = platforms.all; 60 maintainers = [ maintainers.kentjames ]; 61 }; 62}