depot/third_party/nixpkgs/pkgs/development/python-modules/jplephem/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

34 lines
892 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
numpy,
}:
buildPythonPackage rec {
pname = "jplephem";
version = "2.22";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-DZrMche0gG/rqT5yl0zurVYREEvOZ4mvONTyfc96WSw=";
};
propagatedBuildInputs = [ numpy ];
# Weird import error, only happens in testing:
# File "/build/jplephem-2.17/jplephem/daf.py", line 10, in <module>
# from numpy import array as numpy_array, ndarray
# ImportError: cannot import name 'array' from 'sys' (unknown location)
doCheck = false;
pythonImportsCheck = [ "jplephem" ];
meta = with lib; {
homepage = "https://github.com/brandon-rhodes/python-jplephem/";
description = "Python version of NASA DE4xx ephemerides, the basis for the Astronomical Alamanac";
license = licenses.mit;
maintainers = with maintainers; [ zane ];
};
}