2022-09-09 14:08:57 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, certifi, numpy, sgp4, jplephem
|
|
|
|
, pandas, ipython, matplotlib, assay
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "skyfield";
|
|
|
|
version = "1.42";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "skyfielders";
|
|
|
|
repo = "python-skyfield";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-aoSkuLhZcEy+13EJQOBHV2/rgmN6aZQHqfj4OOirOG0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ certifi numpy sgp4 jplephem ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pandas ipython matplotlib assay ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
cd ci
|
|
|
|
assay --batch skyfield.tests
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "skyfield" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/skyfielders/python-skyfield";
|
|
|
|
description = "Elegant astronomy for Python";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zane ];
|
|
|
|
};
|
|
|
|
}
|