1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytest,
6}:
7
8buildPythonPackage rec {
9 pname = "ephem";
10 version = "4.2";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-PE/WT0U+j0DPhiQgpw2pWnG2SHrOdejgz4XXNwfbYGU=";
16 };
17
18 nativeCheckInputs = [
19 pytest
20 ];
21
22 # JPLTest uses assets not distributed in package
23 checkPhase = ''
24 pytest --pyargs ephem.tests -k "not JPLTest"
25 '';
26
27 pythonImportsCheck = [ "ephem" ];
28
29 meta = with lib; {
30 description = "Compute positions of the planets and stars";
31 homepage = "https://github.com/brandon-rhodes/pyephem";
32 license = licenses.mit;
33 maintainers = with maintainers; [ chrisrosset ];
34 };
35}