1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 numpy,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "jplephem";
11 version = "2.22";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-DZrMche0gG/rqT5yl0zurVYREEvOZ4mvONTyfc96WSw=";
17 };
18
19 propagatedBuildInputs = [ numpy ];
20
21 # Weird import error, only happens in testing:
22 # File "/build/jplephem-2.17/jplephem/daf.py", line 10, in <module>
23 # from numpy import array as numpy_array, ndarray
24 # ImportError: cannot import name 'array' from 'sys' (unknown location)
25 doCheck = false;
26
27 pythonImportsCheck = [ "jplephem" ];
28
29 meta = with lib; {
30 homepage = "https://github.com/brandon-rhodes/python-jplephem/";
31 description = "Python version of NASA DE4xx ephemerides, the basis for the Astronomical Alamanac";
32 license = licenses.mit;
33 maintainers = with maintainers; [ zane ];
34 };
35}