2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-12-06 16:07:01 +00:00
|
|
|
, setuptools-scm
|
2021-01-05 17:05:55 +00:00
|
|
|
, liberfa
|
|
|
|
, packaging
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyerfa";
|
|
|
|
format = "pyproject";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2.0.0.1";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "2fd4637ffe2c1e6ede7482c13f583ba7c73119d78bef90175448ce506a0ede30";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
packaging
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
liberfa
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
2021-01-05 17:05:55 +00:00
|
|
|
preBuild = ''
|
|
|
|
export PYERFA_USE_SYSTEM_LIBERFA=1
|
|
|
|
'';
|
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/liberfa/pyerfa";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.rmcgibbo ];
|
|
|
|
};
|
|
|
|
}
|