nixpkgs/pkgs/development/python-modules/pyerfa/default.nix
2021-11-12 19:10:54 -08:00

50 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, liberfa
, packaging
, numpy
}:
buildPythonPackage rec {
pname = "pyerfa";
format = "pyproject";
version = "2.0.0";
doCheck = false;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-+QQjHhpXD5REDgYUB5lZCJUQf5QoR7UqdTzoHJYJFi0=";
};
nativeBuildInputs = [
packaging
setuptools-scm
];
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 ];
};
}