python3Packages.astropy: unbreak

+13 -13
+13 -13
pkgs/development/python-modules/astropy/default.nix
··· 1 1 { lib 2 2 , fetchPypi 3 + , setuptools_scm 3 4 , buildPythonPackage 4 5 , isPy3k 5 6 , cython ··· 8 9 , pytest 9 10 , pytest-astropy 10 11 , astropy-helpers 12 + , astropy-extension-helpers 13 + , pyerfa 11 14 }: 12 15 13 16 buildPythonPackage rec { 14 17 pname = "astropy"; 15 18 version = "4.2"; 19 + format = "pyproject"; 16 20 17 21 disabled = !isPy3k; # according to setup.py 18 22 ··· 21 25 sha256 = "2c194f8a429b8399de64a413a06881ea49f0525cabaa2d78fc132b9e970adc6a"; 22 26 }; 23 27 24 - nativeBuildInputs = [ astropy-helpers cython jinja2 ]; 25 - 26 - propagatedBuildInputs = [ numpy pytest ]; # yes it really has pytest in install_requires 27 - 28 + nativeBuildInputs = [ setuptools_scm astropy-helpers astropy-extension-helpers cython jinja2 ]; 29 + propagatedBuildInputs = [ numpy pyerfa ]; 28 30 checkInputs = [ pytest pytest-astropy ]; 29 31 30 - # Disable automatic update of the astropy-helper module 31 - postPatch = '' 32 - substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" 32 + preBuild = '' 33 + export SETUPTOOLS_SCM_PRETEND_VERSION="${version}" 33 34 ''; 34 35 35 36 # Tests must be run from the build directory. astropy/samp tests ··· 42 43 ''; 43 44 44 45 # 368 failed, 10889 passed, 978 skipped, 69 xfailed in 196.24s 46 + # doCheck = false; 45 47 doCheck = false; 46 48 47 - meta = { 49 + meta = with lib; { 48 50 description = "Astronomy/Astrophysics library for Python"; 49 51 homepage = "https://www.astropy.org"; 50 - license = lib.licenses.bsd3; 51 - platforms = lib.platforms.all; 52 - maintainers = with lib.maintainers; [ kentjames ]; 52 + license = licenses.bsd3; 53 + platforms = platforms.all; 54 + maintainers = [ maintainers.kentjames ]; 53 55 }; 54 56 } 55 - 56 -