Files
nixpkgs/pkgs/development/python-modules/jplephem/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

35 lines
890 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
numpy,
}:
buildPythonPackage rec {
pname = "jplephem";
version = "2.23";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-0/uUd+S/TDnRBJfU/xXlJxt6wD+hAeGCGqxSfWRuzPk=";
};
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 = {
homepage = "https://github.com/brandon-rhodes/python-jplephem/";
description = "Python version of NASA DE4xx ephemerides, the basis for the Astronomical Alamanac";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ zane ];
};
}