1{ lib, buildPythonPackage, fetchFromGitHub, certifi, numpy, sgp4, jplephem
2, pandas, ipython, matplotlib, assay
3}:
4
5buildPythonPackage rec {
6 pname = "skyfield";
7 version = "1.42";
8
9 src = fetchFromGitHub {
10 owner = "skyfielders";
11 repo = "python-skyfield";
12 rev = version;
13 sha256 = "sha256-aoSkuLhZcEy+13EJQOBHV2/rgmN6aZQHqfj4OOirOG0=";
14 };
15
16 propagatedBuildInputs = [ certifi numpy sgp4 jplephem ];
17
18 checkInputs = [ pandas ipython matplotlib assay ];
19
20 checkPhase = ''
21 runHook preCheck
22
23 cd ci
24 assay --batch skyfield.tests
25
26 runHook postCheck
27 '';
28
29 pythonImportsCheck = [ "skyfield" ];
30
31 meta = with lib; {
32 homepage = "https://github.com/skyfielders/python-skyfield";
33 description = "Elegant astronomy for Python";
34 license = licenses.mit;
35 maintainers = with maintainers; [ zane ];
36 };
37}