15 buildPythonPackage rec {
21 inherit pname version;
22 hash = "sha256-rLimcTIy6jXAS8bkCsTkYd/MgX05XvKjyAUcGjMkndM=";
26 substituteInPlace pyproject.toml \
27 --replace-fail "numpy>=2.0.0rc1" "numpy"
37 dependencies = [ numpy ];
38 buildInputs = [ liberfa ];
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 = [ "erfa" ];
59 description = "Python bindings for ERFA routines";
61 PyERFA is the Python wrapper for the ERFA library (Essential Routines
62 for Fundamental Astronomy), a C library containing key algorithms for
63 astronomy, which is based on the SOFA library published by the
64 International Astronomical Union (IAU). All C routines are wrapped as
65 Numpy universal functions, so that they can be called with scalar or
68 homepage = "https://github.com/liberfa/pyerfa";
69 license = licenses.bsd3;
70 maintainers = [ maintainers.rmcgibbo ];