depot/third_party/nixpkgs/pkgs/development/python-modules/skyfield/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

37 lines
844 B
Nix

{ 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 ];
checkInputs = [ pandas ipython matplotlib assay ];
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 ];
};
}