5 , oldest-supported-numpy
15 buildPythonPackage rec {
21 inherit pname version;
22 hash = "sha256-26x07409Ow8i7wrTu72zCyqeEFcLH6Wpi+NMe+Nsmms=";
27 oldest-supported-numpy
33 propagatedBuildInputs = [
41 export PYERFA_USE_SYSTEM_LIBERFA=1
44 # See https://github.com/liberfa/pyerfa/issues/112#issuecomment-1721197483
45 NIX_CFLAGS_COMPILE = "-O2";
50 # Getting circular import errors without this, not clear yet why. This was mentioned to
51 # upstream at: https://github.com/liberfa/pyerfa/issues/112 and downstream at
52 # https://github.com/NixOS/nixpkgs/issues/255262
56 pythonImportsCheck = [
61 description = "Python bindings for ERFA routines";
63 PyERFA is the Python wrapper for the ERFA library (Essential Routines
64 for Fundamental Astronomy), a C library containing key algorithms for
65 astronomy, which is based on the SOFA library published by the
66 International Astronomical Union (IAU). All C routines are wrapped as
67 Numpy universal functions, so that they can be called with scalar or
70 homepage = "https://github.com/liberfa/pyerfa";
71 license = licenses.bsd3;
72 maintainers = [ maintainers.rmcgibbo ];