depot/third_party/nixpkgs/pkgs/development/python-modules/pyerfa/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

56 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, jinja2
, oldest-supported-numpy
, setuptools-scm
, wheel
, liberfa
, packaging
, numpy
}:
buildPythonPackage rec {
pname = "pyerfa";
format = "pyproject";
version = "2.0.0.1";
doCheck = false;
src = fetchPypi {
inherit pname version;
hash = "sha256-L9Rjf/4sHm7edILBP1g7p8cxGdeL75AXVEjOUGoO3jA=";
};
nativeBuildInputs = [
jinja2
oldest-supported-numpy
packaging
setuptools-scm
wheel
];
propagatedBuildInputs = [
liberfa
numpy
];
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 ];
};
}