mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
30 lines
900 B
Nix
30 lines
900 B
Nix
{ lib, buildPythonPackage, fetchPypi, numpy, pytestCheckHook }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jplephem";
|
|
version = "2.21";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-NBlLYQaV8huJIXuYUrjautvOgISMs2nZVn7xLcSCjVU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|