2021-01-05 17:05:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-08-22 20:05:09 +00:00
|
|
|
, jinja2
|
|
|
|
, oldest-supported-numpy
|
2021-12-06 16:07:01 +00:00
|
|
|
, setuptools-scm
|
2023-08-22 20:05:09 +00:00
|
|
|
, wheel
|
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;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-L9Rjf/4sHm7edILBP1g7p8cxGdeL75AXVEjOUGoO3jA=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
jinja2
|
|
|
|
oldest-supported-numpy
|
2021-12-06 16:07:01 +00:00
|
|
|
packaging
|
|
|
|
setuptools-scm
|
2023-08-22 20:05:09 +00:00
|
|
|
wheel
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|