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