1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools-scm
5, liberfa
6, packaging
7, numpy
8}:
9
10buildPythonPackage rec {
11 pname = "pyerfa";
12 format = "pyproject";
13 version = "2.0.0.1";
14
15 doCheck = false;
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "2fd4637ffe2c1e6ede7482c13f583ba7c73119d78bef90175448ce506a0ede30";
20 };
21
22 nativeBuildInputs = [
23 packaging
24 setuptools-scm
25 ];
26
27 propagatedBuildInputs = [
28 liberfa
29 numpy
30 ];
31
32 preBuild = ''
33 export PYERFA_USE_SYSTEM_LIBERFA=1
34 '';
35
36 meta = with lib; {
37 description = "Python bindings for ERFA routines";
38 longDescription = ''
39 PyERFA is the Python wrapper for the ERFA library (Essential Routines
40 for Fundamental Astronomy), a C library containing key algorithms for
41 astronomy, which is based on the SOFA library published by the
42 International Astronomical Union (IAU). All C routines are wrapped as
43 Numpy universal functions, so that they can be called with scalar or
44 array inputs.
45 '';
46 homepage = "https://github.com/liberfa/pyerfa";
47 license = licenses.bsd3;
48 maintainers = [ maintainers.rmcgibbo ];
49 };
50}