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