diff options
Diffstat (limited to 'pkgs/development/python-modules/pyerfa/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyerfa/default.nix | 64 |
1 files changed, 31 insertions, 33 deletions
diff --git a/pkgs/development/python-modules/pyerfa/default.nix b/pkgs/development/python-modules/pyerfa/default.nix index 8561738f8428c..68e5f7d97496e 100644 --- a/pkgs/development/python-modules/pyerfa/default.nix +++ b/pkgs/development/python-modules/pyerfa/default.nix @@ -1,41 +1,41 @@ -{ lib -, buildPythonPackage -, fetchPypi -, jinja2 -, oldest-supported-numpy -, setuptools-scm -, wheel -, liberfa -, packaging -, numpy -, pytestCheckHook -, pytest-doctestplus +{ + lib, + buildPythonPackage, + fetchPypi, + jinja2, + setuptools, + setuptools-scm, + liberfa, + packaging, + numpy, + pytestCheckHook, + pytest-doctestplus, }: buildPythonPackage rec { pname = "pyerfa"; - format = "pyproject"; - version = "2.0.1.1"; + version = "2.0.1.4"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-26x07409Ow8i7wrTu72zCyqeEFcLH6Wpi+NMe+Nsmms="; + hash = "sha256-rLimcTIy6jXAS8bkCsTkYd/MgX05XvKjyAUcGjMkndM="; }; - nativeBuildInputs = [ + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "numpy>=2.0.0rc1" "numpy" + ''; + + build-system = [ jinja2 - oldest-supported-numpy packaging + setuptools setuptools-scm - wheel ]; - propagatedBuildInputs = [ - numpy - ]; - buildInputs = [ - liberfa - ]; + dependencies = [ numpy ]; + buildInputs = [ liberfa ]; preBuild = '' export PYERFA_USE_SYSTEM_LIBERFA=1 @@ -53,19 +53,17 @@ buildPythonPackage rec { preCheck = '' cd $out ''; - pythonImportsCheck = [ - "erfa" - ]; + pythonImportsCheck = [ "erfa" ]; meta = with lib; { description = "Python bindings for ERFA routines"; longDescription = '' - PyERFA is the Python wrapper for the ERFA library (Essential Routines - for Fundamental Astronomy), a C library containing key algorithms for - astronomy, which is based on the SOFA library published by the - International Astronomical Union (IAU). All C routines are wrapped as - Numpy universal functions, so that they can be called with scalar or - array inputs. + PyERFA is the Python wrapper for the ERFA library (Essential Routines + for Fundamental Astronomy), a C library containing key algorithms for + astronomy, which is based on the SOFA library published by the + International Astronomical Union (IAU). All C routines are wrapped as + Numpy universal functions, so that they can be called with scalar or + array inputs. ''; homepage = "https://github.com/liberfa/pyerfa"; license = licenses.bsd3; |